From: Martin Wilck <mwilck@xxxxxxxx> GCC 4.x doesn't enable the "gnu99" standard by default, which is required by the multipath-tools code. Tested with gcc 4, 7, 8, 9, 10 and clang 3.9, 7, 8, 9, 10. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index 8ea3352..e05f3a9 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -98,7 +98,7 @@ WARNFLAGS := -Werror -Wall -Wextra -Wformat=2 -Werror=implicit-int \ -Werror=implicit-function-declaration -Werror=format-security \ $(WNOCLOBBERED) -Werror=cast-qual $(ERROR_DISCARDED_QUALIFIERS) CPPFLAGS := -Wp,-D_FORTIFY_SOURCE=2 -CFLAGS := $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe \ +CFLAGS := --std=gnu99 $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe \ -DBIN_DIR=\"$(bindir)\" -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" \ -MMD -MP BIN_CFLAGS = -fPIE -DPIE -- 2.28.0 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel