ignore common warnings in gcc and clang

This commit is contained in:
sevoves 2025-04-03 22:09:20 +04:00
parent 7691293a5b
commit cd06cd32b1

View file

@ -137,7 +137,8 @@ void determineCCompiler() {
} }
#elif defined(__clang__) #elif defined(__clang__)
compiler = "clang"; compiler = "clang";
cc = "clang -fPIC -g" optimize; // FIXME ignoring warnings
cc = "clang -fPIC -g -Wno-deprecated-non-prototype" optimize;
#elif defined(__TINYC__) #elif defined(__TINYC__)
compiler = "tcc"; compiler = "tcc";
cc = "tcc -g"; cc = "tcc -g";
@ -146,9 +147,11 @@ void determineCCompiler() {
compiler = "gcc"; compiler = "gcc";
if (strncasecmp(os, "cygwin", 6) == 0) { if (strncasecmp(os, "cygwin", 6) == 0) {
// Avoid cygwin specific warning that -fPIC is ignored. // Avoid cygwin specific warning that -fPIC is ignored.
cc = "gcc -g" optimize; // FIXME ignoring warnings
cc = "gcc -g -Wno-stringop-overflow" optimize;
} else { } else {
cc = "gcc -fPIC -g" optimize; // FIXME ignoring warnings
cc = "gcc -fPIC -g -Wno-stringop-overflow" optimize;
} }
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
compiler = "msc"; compiler = "msc";