diff options
| author | Stefan Weil <sw@weilnetz.de> | 2015-10-07 11:58:11 +0200 |
|---|---|---|
| committer | Stefan Weil <sw@weilnetz.de> | 2015-10-07 20:53:57 +0200 |
| commit | c8ae3c522552271f426eaa9c6d158a72e9c5f26f (patch) | |
| tree | f1694f45b7bddcbd63e9480c913a76e7410cbe14 /src/bin/common | |
| parent | 07f65540b54f83919447ea8e515b95a4777d8ae0 (diff) | |
Fix warnings for C++
g++ complains about invalid conversions like these ones:
error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
error: invalid conversion from ‘void*’ to ‘opj_precision* {aka opj_prec*}’ [-fpermissive]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'src/bin/common')
| -rw-r--r-- | src/bin/common/opj_getopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/common/opj_getopt.c b/src/bin/common/opj_getopt.c index 484c839d..65f271f8 100644 --- a/src/bin/common/opj_getopt.c +++ b/src/bin/common/opj_getopt.c @@ -66,7 +66,7 @@ void opj_reset_options_reading(void) { int opj_getopt(int nargc, char *const *nargv, const char *ostr) { # define __progname nargv[0] static char *place = EMSG; /* option letter processing */ - char *oli = NULL; /* option letter list index */ + const char *oli = NULL; /* option letter list index */ if (opj_optreset || !*place) { /* update scanning pointer */ opj_optreset = 0; @@ -125,7 +125,7 @@ int opj_getopt(int nargc, char *const *nargv, const char *ostr) { int opj_getopt_long(int argc, char * const argv[], const char *optstring, const opj_option_t *longopts, int totlen) { static int lastidx,lastofs; - char *tmp; + const char *tmp; int i,len; char param = 1; |
