mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-05 23:22:25 +00:00
ignore common warnings in gcc and clang
This commit is contained in:
parent
7691293a5b
commit
cd06cd32b1
1 changed files with 6 additions and 3 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue