Re: useless cast warning
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
> Date: Fri, 17 Jul 2026 09:09:02 +0200 > From: Thomas Klausner <[email protected]> > > Hi! > > When compiling emacs git head on NetBSD, I see: > > getopt1.c: In function 'rpl_getopt_long': > getopt1.c:31:34: warning: useless cast to type 'char **' [-Wuseless-cast] > 31 | return _getopt_internal (argc, (char **) argv, options, long_options, > | ^ > getopt1.c: In function 'rpl_getopt_long_only': > getopt1.c:54:34: warning: useless cast to type 'char **' [-Wuseless-cast] > 54 | return _getopt_internal (argc, (char **) argv, options, long_options, > | ^ That's likely a Gnulib issue, so I'm adding Paul to the discussion.