aboutsummaryrefslogtreecommitdiff
path: root/repos/clang/gperf/gperf-3.1-strncmp-decl-mismatch.patch
diff options
context:
space:
mode:
authoremmett1 <emmett1.2iligrams@protonmail.com>2025-03-12 04:01:18 +0100
committeremmett1 <emmett1.2iligrams@protonmail.com>2025-03-12 04:01:18 +0100
commitddd8e1a8fab2ac39396282a7c09ddf6eca219613 (patch)
tree12796519575126d60e06d02e9eab68856229cf58 /repos/clang/gperf/gperf-3.1-strncmp-decl-mismatch.patch
parentb5a8a6c29e40f786ceb808c0b95f01c4251111d1 (diff)
downloadalicelinux-ddd8e1a8fab2ac39396282a7c09ddf6eca219613.tar.gz
alicelinux-ddd8e1a8fab2ac39396282a7c09ddf6eca219613.zip
clang repos updated
Diffstat (limited to 'repos/clang/gperf/gperf-3.1-strncmp-decl-mismatch.patch')
-rw-r--r--repos/clang/gperf/gperf-3.1-strncmp-decl-mismatch.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/repos/clang/gperf/gperf-3.1-strncmp-decl-mismatch.patch b/repos/clang/gperf/gperf-3.1-strncmp-decl-mismatch.patch
new file mode 100644
index 00000000..67380fb0
--- /dev/null
+++ b/repos/clang/gperf/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 <bruno@clisp.org>
+Date: Thu, 8 Sep 2022 04:45:03 +0200
+Subject: [PATCH] Fix a warning regarding strncmp.
+
+Reported by Sam James in <https://savannah.gnu.org/bugs/?63031>.
+
+* 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__ */