Fix Werrors with GCC-14.1.0 41/312841/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.235058 accepted/tizen/unified/20240618.010137 accepted/tizen/unified/dev/20240620.010759 tizen_9.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 17 Jun 2024 04:16:14 +0000 (13:16 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 17 Jun 2024 04:16:41 +0000 (13:16 +0900)
-Wno-error=incompatible-pointer-types

Change-Id: Iba09259215652104f7d2d429380ae04ec9c8bb9f

packaging/fix_no-error-incompatible-pointer-types.patch [new file with mode: 0644]
packaging/kbd.spec

diff --git a/packaging/fix_no-error-incompatible-pointer-types.patch b/packaging/fix_no-error-incompatible-pointer-types.patch
new file mode 100644 (file)
index 0000000..aa41d19
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/configure.ac b/configure.ac
+index 6bf6401..8c82058 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -93,6 +93,7 @@ CC_CHECK_CFLAGS_APPEND([\
+       -Wshadow \
+       -Wstrict-prototypes \
+       -Wwrite-strings \
++    -Wno-error=incompatible-pointer-types \
+ ])
+ case $host_cpu in
index 6e80878..3b8f4c7 100644 (file)
@@ -12,6 +12,7 @@ Source3:        kbd-latarcyrheb-16-fixed.tar.bz2
 Source4:        fr-dvorak.tar.bz2
 Source5:        kbd-latarcyrheb-32.tar.bz2
 Source6:        Add_pie_compile_option.patch
+Source7:        fix_no-error-incompatible-pointer-types.patch
 Source1001:     kbd.manifest
 
 BuildRequires:  bison
@@ -39,6 +40,7 @@ keymaps etc. Please note that %{name}-misc is not helpful without kbd.
 %setup -q -a 2 -a 3 -a 4 -a 5
 cp %{SOURCE1001} .
 %{__patch} -p1 < %{SOURCE6}
+%{__patch} -p1 < %{SOURCE7}
 
 # 7-bit maps are obsolete; so are non-euro maps
 pushd data/keymaps/i386