aboutsummaryrefslogtreecommitdiff
path: root/pcap-common.h
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-07-25 02:17:19 -0700
committerGuy Harris <gharris@sonic.net>2021-07-25 02:17:19 -0700
commit8336c296aff1e7cd0172704ae0e11dd2dc275383 (patch)
tree80d8a392578d955fdba37570b46721ee4bfb6d04 /pcap-common.h
parentf3b6dcabe6b6f88a449e887af080bf1d76ddc0c4 (diff)
configure: AC_TRY_COMPILE() generates a return; don't add one.
If we pass [return 0] to AC_TRY_COMPILE(), the test program it compiles has two "return 0;" statements in a row, and one of the -W flags we tests reports a warning for that. We were testing whether a -W flag is supported by checking the standard error of the compiler to see if *any* error/warning messages are generated, and treating the flag as unsupported if any are, that meant that -Wunreachable-code-return was be treated as unsupported even though it *is* supported. This should fix that. (That flag isn't currently used here, but it is used for tcpdump, and we want to make this change and the previous change in tcpdump as well. I'm so glad autoconf makes this all so difficult to do correctly....)
Diffstat (limited to 'pcap-common.h')
0 files changed, 0 insertions, 0 deletions