summaryrefslogtreecommitdiff
path: root/devel/popt/patches/patch-af
diff options
context:
space:
mode:
authorgson <gson@pkgsrc.org>2003-11-24 19:13:19 +0000
committergson <gson@pkgsrc.org>2003-11-24 19:13:19 +0000
commitd54c03fd93a01a79cb776191c6b1213004613356 (patch)
tree776af679c4d4e6e874db96ae3086f08592d7a854 /devel/popt/patches/patch-af
parenta0b5d8b6f1975f110f19e678fd976f4e27f2e6bd (diff)
downloadpkgsrc-d54c03fd93a01a79cb776191c6b1213004613356.tar.gz
Remove bogus const which caused gcc 3.3.2 to issue warnings like
"/usr/pkg/include/popt.h:444: warning: type qualifiers ignored on function return type" every time popt.h was included.
Diffstat (limited to 'devel/popt/patches/patch-af')
-rw-r--r--devel/popt/patches/patch-af13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/popt/patches/patch-af b/devel/popt/patches/patch-af
new file mode 100644
index 00000000000..e7109ee5832
--- /dev/null
+++ b/devel/popt/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2003/11/24 19:13:19 gson Exp $
+
+--- popt.c.orig 2002-08-22 07:17:44.000000000 -0700
++++ popt.c
+@@ -1153,7 +1153,7 @@ const char * poptBadOption(poptContext c
+ /*@=nullderef@*/
+ }
+
+-const char *const poptStrerror(const int error)
++const char *poptStrerror(const int error)
+ {
+ switch (error) {
+ case POPT_ERROR_NOARG: