]> The Tcpdump Group git mirrors - tcpdump/commit
Fix the macros for controlling warnings
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 21 Oct 2017 17:07:54 +0000 (19:07 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 21 Oct 2017 18:01:02 +0000 (20:01 +0200)
commit99b16dee903054c03f5949ee674b0344cbccf1cd
treef6cdcfa36e22814f431169bd82b504f2c75fa9e1
parent0a2edb9d3f5157e8c321c2a9f645b71e70facab2
Fix the macros for controlling warnings

The current clang compilers also set __GNUC__ and __GNUC_MINOR__ thus
we need to test the clang case before the GCC one.

Moreover:
Add DIAG_OFF_CLANG and DIAG_ON_CLANG macros for clang specific
warnings.
Add a comment.
netdissect-stdinc.h