Makefile: Check -Wno-stringop-truncation is supported
The cross compiler on my system throws a fit as it does not understand
this option:
cc1: error: unrecognized command line option '-Wno-stringop-truncation' [-Werror]
Fixes: ("Add -Wno-stringop-truncation for GCC8")
@@ -31,7 +31,7 @@ CWARNS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Wwrite-strings -Wcast-align \
-Winit-self \
-Wframe-larger-than=1024 \
- -Wno-stringop-truncation \
+ $(call try-cflag,$(CC),--Wno-stringop-truncation) \
-Werror
# Host tools and options
