aboutsummaryrefslogtreecommitdiff
path: root/pcap-dpdk.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-07-25 00:15:40 -0700
committerGuy Harris <gharris@sonic.net>2021-07-25 00:15:40 -0700
commitf3b6dcabe6b6f88a449e887af080bf1d76ddc0c4 (patch)
tree850941f59a11f684e1c7381c1b8bd6b05d5ae19d /pcap-dpdk.c
parent3764df113ef45891ea68cd0deb5c2757d012a737 (diff)
configure: use ac_c_werror_flag to force unknown compiler flags to fail.
It's not a documented feature, but it's what the documented AC_LANG_WERROR has used for 13 years, and there's no push/pop mechanism for AC_LANG_WERROR, so you can't ensure that "fail even on warnings" will be applied *only* in AC_LBL_CHECK_COMPILER_OPT(), as that's what we want. (If we can make sure that *no* compiler tests will produce warnings, except for the ones we *want* to fail if they produce warnings, we could just do AC_LANG_WERROR, but that might be tricky to ensure in the general case.) We do this because not all compilers have a command-line flag to force all warnings, *including* warnings from unknown commad-line flags (I'm looking at *you* IBM XL C!), so we have to have the test check to make sure no warnings are produced (which, for AC_TRY_COMPILE(), means "nothing is written to the standard output").
Diffstat (limited to 'pcap-dpdk.c')
0 files changed, 0 insertions, 0 deletions