From c02f0a2cafa1964dc62d8ef9312083b606a9b7c5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 8 Sep 2022 10:38:04 +0100 Subject: gentoo auto-resync : 08:09:2022 - 10:38:04 --- .../files/gperf-3.1-strncmp-decl-mismatch.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dev-util/gperf/files/gperf-3.1-strncmp-decl-mismatch.patch (limited to 'dev-util/gperf/files') diff --git a/dev-util/gperf/files/gperf-3.1-strncmp-decl-mismatch.patch b/dev-util/gperf/files/gperf-3.1-strncmp-decl-mismatch.patch new file mode 100644 index 000000000000..67380fb0279c --- /dev/null +++ b/dev-util/gperf/files/gperf-3.1-strncmp-decl-mismatch.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/869134 + +From 09844ce4ca3d5975469640cea9c5414d5c0baa44 Mon Sep 17 00:00:00 2001 +From: Bruno Haible +Date: Thu, 8 Sep 2022 04:45:03 +0200 +Subject: [PATCH] Fix a warning regarding strncmp. + +Reported by Sam James in . + +* lib/getopt.c (strncmp): Declare with a prototype. +--- a/lib/getopt.c ++++ b/lib/getopt.c +@@ -194,7 +194,6 @@ static char *posixly_correct; + whose names are inconsistent. */ + + extern char *getenv (); +-extern int strncmp (); + + static char * + my_index (const char *str, int chr) +@@ -209,6 +208,7 @@ my_index (const char *str, int chr) + } + + extern int strcmp (const char *, const char *); ++extern int strncmp (const char *, const char *, size_t); + extern size_t strlen (const char *); + + #endif /* not __GNU_LIBRARY__ */ -- cgit v1.2.3