commit:     9a8968959d392ec5ce10242052cd48f7ae0977d0
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Thu Jan  9 09:11:37 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 10 10:18:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a896895

app-i18n/xvnkb: fix -Wimplicit-int error

Closes: https://bugs.gentoo.org/879631
Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40065
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../xvnkb/files/xvnkb-0.2.11-implicit-int.patch    | 64 ++++++++++++++++++++++
 app-i18n/xvnkb/xvnkb-0.2.11.ebuild                 |  1 +
 2 files changed, 65 insertions(+)

diff --git a/app-i18n/xvnkb/files/xvnkb-0.2.11-implicit-int.patch 
b/app-i18n/xvnkb/files/xvnkb-0.2.11-implicit-int.patch
new file mode 100644
index 000000000000..12d48603ed72
--- /dev/null
+++ b/app-i18n/xvnkb/files/xvnkb-0.2.11-implicit-int.patch
@@ -0,0 +1,64 @@
+otherwise will report error:
+
+  type specifier missing, defaults to 'int'; ISO C99 and later do not support 
implicit int [-Werror,-Wimplicit-int]
+
+diff --git a/config/ctype.c b/config/ctype.c
+index ae6ed8b..3f05677 100644
+--- a/config/ctype.c
++++ b/config/ctype.c
+@@ -16,4 +16,4 @@ ulong ul;
+ #ifdef VK_NEED_UINT
+ uint ui;
+ #endif
+-main(){}
++int main(){}
+diff --git a/config/dl.c b/config/dl.c
+index e16ff86..6db52e0 100644
+--- a/config/dl.c
++++ b/config/dl.c
+@@ -2,7 +2,7 @@
+ /*  dl.c -- used by configure script to detect dynamic link loader            
*/
+ 
/*----------------------------------------------------------------------------*/
+ #include <dlfcn.h>
+-main()
++int main()
+ {
+       dlopen(0, 0);
+ }
+diff --git a/config/qc.c b/config/qc.c
+index d70d10b..01def92 100644
+--- a/config/qc.c
++++ b/config/qc.c
+@@ -2,7 +2,7 @@
+ #include <qstring.h>
+ #include <qcstring.h>
+ 
+-main()
++int main()
+ {
+       for( int i=128; i<256; i++ ) {
+               char buf[4];
+diff --git a/config/x.c b/config/x.c
+index c5bdd8b..d35eb0a 100644
+--- a/config/x.c
++++ b/config/x.c
+@@ -2,6 +2,6 @@
+ /*  x.c -- used by configure script to detect X lib                           
*/
+ 
/*----------------------------------------------------------------------------*/
+ #include <X11/Xlib.h>
+-main() {
++int main() {
+       XOpenDisplay(NULL);
+ }
+diff --git a/config/xft.c b/config/xft.c
+index ff4fc7d..148f444 100644
+--- a/config/xft.c
++++ b/config/xft.c
+@@ -1,6 +1,6 @@
+ #include <X11/Xft/Xft.h>
+ 
+-main()
++int main()
+ {
+       XftFontOpenName(0, 0, 0);
+ }

diff --git a/app-i18n/xvnkb/xvnkb-0.2.11.ebuild 
b/app-i18n/xvnkb/xvnkb-0.2.11.ebuild
index 15cbc7258fcf..e9eaca479717 100644
--- a/app-i18n/xvnkb/xvnkb-0.2.11.ebuild
+++ b/app-i18n/xvnkb/xvnkb-0.2.11.ebuild
@@ -23,6 +23,7 @@ BDEPEND="xft? ( virtual/pkgconfig )"
 PATCHES=(
        "${FILESDIR}"/${PN}-cc.patch
        "${FILESDIR}"/${P}-ldflags.patch
+       "${FILESDIR}"/${P}-implicit-int.patch
 )
 
 src_prepare() {

Reply via email to