Silence GCC's -Wno-unused-result during bootstrap

Unlike clang, GCC still warns even with (void) casts (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425)
This commit is contained in:
Alex Richardson 2020-09-10 15:37:24 +00:00
parent 266b51ac6e
commit 0a81de38dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365583

View File

@ -96,3 +96,6 @@ UPDATE_DEPENDFILE= no
Error was caused by Makefile in ${.CURDIR}
.endif
.endif
# GCC doesn't allow silencing warn_unused_result calls with (void) casts.
CFLAGS.gcc+=-Wno-unused-result