diff options
author | Michael Brown | 2018-07-08 19:12:43 +0200 |
---|---|---|
committer | Michael Brown | 2018-07-08 19:17:18 +0200 |
commit | 1c47eb186e7e38bde2a1db528cc3557b1b300386 (patch) | |
tree | 4e0a7ea00637813e37dd3916abc31ffcfdcaf439 /src/core/null_time.c | |
parent | [vmbus] Do not expect version in version_response (diff) | |
download | ipxe-1c47eb186e7e38bde2a1db528cc3557b1b300386.tar.gz ipxe-1c47eb186e7e38bde2a1db528cc3557b1b300386.tar.xz ipxe-1c47eb186e7e38bde2a1db528cc3557b1b300386.zip |
[build] Use positive-form tests when checking for supported warnings
Some versions of gcc seem to silently accept an attempt to disable an
unrecognised warning (e.g. via -Wno-stringop-truncation) but will then
report the unrecognised warning if any other error occurs during the
build, resulting in a potentially misleading error message.
Avoid this potential confusion by using the positive-form tests in
order to determine the workaround CFLAGS.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/null_time.c')
0 files changed, 0 insertions, 0 deletions