Fix Werrors with GCC-14.1.0 41/311241/2
authorDongkyun Son <dongkyun.s@samsung.com>
Thu, 16 May 2024 13:54:34 +0000 (22:54 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Fri, 17 May 2024 11:27:57 +0000 (11:27 +0000)
-Wimplicit-int
-Wimplicit-function-declaration

Change-Id: I049105bf72393448b149d0e8dd3fe0692525ac94
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/bash.spec
support/bashversion.c

index e823f04f22c0099b4577f08d2e54fdb8a812c5bd..4411cc56b85dc01f6304d8b25174e772be7ef1fc 100644 (file)
@@ -33,7 +33,7 @@ cp %{SOURCE1001} .
 %{__patch} -p1 < %{SOURCE1002}
 
 %build
-export CFLAGS+=" -fPIC -fvisibility=hidden -flto "
+export CFLAGS+=" -fPIC -fvisibility=hidden -flto -Wno-error=implicit-function-declaration -Wno-error=implicit-int "
 export LDFLAGS+=" -pie -fvisibility=hidden -flto "
 autoconf
 %configure --enable-largefile \
index abf1aa8dfcf8514413073fdab3758b5197baa090..ef20fe30f5a5515e2e9ed66d938e634dcd3ce8ab 100644 (file)
@@ -47,6 +47,9 @@ extern char *optarg;
 extern char *dist_version;
 extern int patch_level;
 
+extern char *shell_version_string __P((void));
+extern void show_shell_version __P((int));
+
 char *shell_name = "bash";
 char *progname;