Tentative GCC/Clang warning fixes with unused functions (cf #296)

docking
ocornut 10 years ago
parent 23e7bdebcf
commit 6a90ac2094

@ -15,7 +15,6 @@
#include <stdio.h> // vsnprintf, sscanf, printf
#ifdef _MSC_VER
#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff)
#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen
#define snprintf _snprintf
#endif

@ -31,6 +31,9 @@
#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen
#define snprintf _snprintf
#endif
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used
#endif
//-------------------------------------------------------------------------
// STB libraries implementation

Loading…
Cancel
Save