diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2022-06-11 14:00:31 +0300 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2022-06-11 14:00:34 +0300 |
commit | 09142579c5711c57e7f80986f22b388185cb0585 (patch) | |
tree | 17598951648e16d98ef9021beeb6074ad4b1dac8 | |
parent | 916d2d7da15f124446a7366b9d5a1ef8b6a4dcce (diff) |
use -Wno-unknown-pragmas if available
this heavily reduces compiler warning spam in build logs.
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -177,6 +177,7 @@ ishaiku() { } check_compile 'whether C compiler works' '' 'int main() {return 0;}' || fail 'error: install a C compiler and library' +check_compile 'whether C compiler understands -Wno-unknown-pragmas' '-Wno-unknown-pragmas' 'int main() {return 0;}' if ! check_compile 'whether getnameinfo() servlen argument is POSIX compliant (socklen_t)' "-DGN_NODELEN_T=socklen_t -DGN_SERVLEN_T=socklen_t -DGN_FLAGS_T=int" \ '#define _GNU_SOURCE\n#include <netdb.h>\nint getnameinfo(const struct sockaddr *, socklen_t, char *, socklen_t, char *, socklen_t, int);int main() {\nreturn 0;}' ; then |