pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

emacs-git: fix warning



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Fri Jul 17 09:34:49 2026 +0200
Changeset:	a2a5b448b1c767ec22251b9684e1b2ff2bab4cde

Modified Files:
	emacs-git/distinfo
Added Files:
	emacs-git/patches/patch-lib_getopt1.c

Log Message:
emacs-git: fix warning

from upstream

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a2a5b448b1c767ec22251b9684e1b2ff2bab4cde

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 emacs-git/distinfo                    |  1 +
 emacs-git/patches/patch-lib_getopt1.c | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diffs:
diff --git a/emacs-git/distinfo b/emacs-git/distinfo
index e7bbff4940..94f3f01abf 100644
--- a/emacs-git/distinfo
+++ b/emacs-git/distinfo
@@ -1,3 +1,4 @@
 $NetBSD$
 
 SHA1 (patch-Makefile.in) = 1babbbeda525935718778225ccc0cc2d0e118454
+SHA1 (patch-lib_getopt1.c) = 7a56f7381d15d29942ee34fd0c3bbffe33b2fb4b
diff --git a/emacs-git/patches/patch-lib_getopt1.c b/emacs-git/patches/patch-lib_getopt1.c
new file mode 100644
index 0000000000..188cba4a5f
--- /dev/null
+++ b/emacs-git/patches/patch-lib_getopt1.c
@@ -0,0 +1,25 @@
+$NetBSD$
+
+Fix getopt1.c:31:34: warning: useless cast to type 'char **' [-Wuseless-cast]
+From upstream.
+
+--- lib/getopt1.c.orig	2026-07-14 17:23:34.000000000 +0000
++++ lib/getopt1.c
+@@ -28,7 +28,7 @@ getopt_long (int argc, char *__getopt_argv_const *argv
+ getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
+ 	     const struct option *long_options, int *opt_index)
+ {
+-  return _getopt_internal (argc, (char **) argv, options, long_options,
++  return _getopt_internal (argc, (char **) { argv }, options, long_options,
+ 			   opt_index, 0, 0);
+ }
+ 
+@@ -51,7 +51,7 @@ getopt_long_only (int argc, char *__getopt_argv_const 
+ 		  const char *options,
+ 		  const struct option *long_options, int *opt_index)
+ {
+-  return _getopt_internal (argc, (char **) argv, options, long_options,
++  return _getopt_internal (argc, (char **) { argv }, options, long_options,
+ 			   opt_index, 1, 0);
+ }
+ 


Home | Main Index | Thread Index | Old Index