Mercurial > octave
changeset 22514:1e007e986396
Fix octave_getopt_long_wrapper prototype to avoid warnings on some systems (bug #49131)
* getopt-wrapper.c, getopt-wrapper.h (octave_getopt_long_wrapper): Remove const
qualifier on parameter to avoid cast warning on systems where gnulib getopt_long
is required.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Mon, 19 Sep 2016 12:54:53 -0700 |
parents | 12ea89cb1237 |
children | 77b50a83ec11 |
files | liboctave/wrappers/getopt-wrapper.c liboctave/wrappers/getopt-wrapper.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/wrappers/getopt-wrapper.c Sun Sep 18 11:15:28 2016 -0500 +++ b/liboctave/wrappers/getopt-wrapper.c Mon Sep 19 12:54:53 2016 -0700 @@ -88,7 +88,7 @@ } int -octave_getopt_long_wrapper (int argc, char *const *argv, +octave_getopt_long_wrapper (int argc, char **argv, const char *shortopts, const struct octave_getopt_options *longopts, int *longind)
--- a/liboctave/wrappers/getopt-wrapper.h Sun Sep 18 11:15:28 2016 -0500 +++ b/liboctave/wrappers/getopt-wrapper.h Mon Sep 19 12:54:53 2016 -0700 @@ -40,7 +40,7 @@ #define octave_optional_arg 2 extern int -octave_getopt_long_wrapper (int argc, char *const *argv, +octave_getopt_long_wrapper (int argc, char **argv, const char *shortopts, const struct octave_getopt_options *longopts, int *longind);