diff --git a/source/lib/res/file/path.cpp b/source/lib/res/file/path.cpp index 7100376472..b8ea326605 100644 --- a/source/lib/res/file/path.cpp +++ b/source/lib/res/file/path.cpp @@ -192,7 +192,7 @@ LibError file_set_root_dir(const char* argv0, const char* rel_path) // .. append DIR_SEP to simplify code that uses n_root_dir n_root_dir_len = strlen(n_root_dir)+1; // +1 for trailing DIR_SEP - assert((n_root_dir_len+1) < sizeof(n_root_dir)); // Just checking + debug_assert((n_root_dir_len+1) < sizeof(n_root_dir)); // Just checking n_root_dir[n_root_dir_len-1] = DIR_SEP; // You might think that n_root_dir is already 0-terminated, since it's // static - but that might not be true after calling file_reset_root_dir! diff --git a/source/lib/sysdep/unix/printf.cpp b/source/lib/sysdep/unix/printf.cpp index 28ff9c87ef..548b4ba109 100644 --- a/source/lib/sysdep/unix/printf.cpp +++ b/source/lib/sysdep/unix/printf.cpp @@ -23,4 +23,4 @@ int vsnprintf2(char* buffer, size_t count, const char* format, va_list argptr) return -1; return ret; -} \ No newline at end of file +} diff --git a/source/lib/sysdep/unix/x.cpp b/source/lib/sysdep/unix/x.cpp index 15d966b2d4..3f36fad6a9 100644 --- a/source/lib/sysdep/unix/x.cpp +++ b/source/lib/sysdep/unix/x.cpp @@ -217,6 +217,8 @@ int clipboard_filter(const SDL_Event *event) return 1; /* Handle window-manager specific clipboard events */ + /* (Note: libsdl must be compiled with X11 support (SDL_VIDEO_DRIVER_X11 in SDL_config.h) - + else you'll get errors like "'struct SDL_SysWMmsg' has no member named 'xevent'") */ switch (event->syswm.msg->event.xevent.type) { /* Copy the selection from our buffer to the requested property, and convert to the requested target format */ diff --git a/source/lib/tests/test_cache_adt.h b/source/lib/tests/test_cache_adt.h index 7cdf4b8e6a..d4365a4f42 100644 --- a/source/lib/tests/test_cache_adt.h +++ b/source/lib/tests/test_cache_adt.h @@ -106,4 +106,4 @@ public: } // else } // for i } -}; \ No newline at end of file +};