The following changes since commit 13bc47b65d32df6fd212c4687c7fd29b4ab7c09d: tools/fiograph: accommodate job files not ending in .fio (2023-01-23 13:51:16 -0500) are available in the Git repository at: git://git.kernel.dk/fio.git master for you to fetch changes up to 5ca54c1ba2db849dfaef5fe3aec60329b3df0bd1: Makefile: add -Wno-stringop-truncation for y.tab.o (2023-01-24 21:07:37 -0700) ---------------------------------------------------------------- Jens Axboe (1): Makefile: add -Wno-stringop-truncation for y.tab.o Makefile | 6 +++++- configure | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) --- Diff of recent changes: diff --git a/Makefile b/Makefile index 9fd8f59b..5f4e6562 100644 --- a/Makefile +++ b/Makefile @@ -554,11 +554,15 @@ ifneq (,$(findstring -Wimplicit-fallthrough,$(CFLAGS))) LEX_YY_CFLAGS := -Wno-implicit-fallthrough endif +ifdef CONFIG_HAVE_NO_STRINGOP +YTAB_YY_CFLAGS := -Wno-stringop-truncation +endif + lex.yy.o: lex.yy.c y.tab.h $(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) $(LEX_YY_CFLAGS) -c $< y.tab.o: y.tab.c y.tab.h - $(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -c $< + $(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) $(YTAB_YY_CFLAGS) -c $< y.tab.c: exp/expression-parser.y $(QUIET_YACC)$(YACC) -o $@ -l -d -b y $< diff --git a/configure b/configure index 6d8e3a87..a17d1cda 100755 --- a/configure +++ b/configure @@ -2826,6 +2826,22 @@ if compile_prog "-Wimplicit-fallthrough=2" "" "-Wimplicit-fallthrough=2"; then fi print_config "-Wimplicit-fallthrough=2" "$fallthrough" +########################################## +# check if the compiler has -Wno-stringop-concatenation +no_stringop="no" +cat > $TMPC << EOF +#include <stdio.h> + +int main(int argc, char **argv) +{ + return printf("%s\n", argv[0]); +} +EOF +if compile_prog "-Wno-stringop-truncation -Werror" "" "no_stringop"; then + no_stringop="yes" +fi +print_config "-Wno-stringop-truncation" "$no_stringop" + ########################################## # check for MADV_HUGEPAGE support if test "$thp" != "yes" ; then @@ -3271,6 +3287,9 @@ fi if test "$fallthrough" = "yes"; then CFLAGS="$CFLAGS -Wimplicit-fallthrough" fi +if test "$no_stringop" = "yes"; then + output_sym "CONFIG_HAVE_NO_STRINGOP" +fi if test "$thp" = "yes" ; then output_sym "CONFIG_HAVE_THP" fi