From: Trevor Saunders Date: Mon, 22 Feb 2016 22:27:30 +0000 (-0500) Subject: cast to char * when assigning to optarg X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97830986a14b00011755d26469889a6627378ced;p=binutils-gdb.git cast to char * when assigning to optarg gas/ChangeLog: 2016-03-31 Trevor Saunders * as.c (parse_args): Cast literal to char * when assigning to optarg. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 4b3127cfd0e..ffb04fd5afe 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2016-03-31 Trevor Saunders + + * as.c (parse_args): Cast literal to char * when assigning to optarg. + 2016-03-31 Trevor Saunders * config/tc-ia64.c (md_assemble): Add temporary variable to pass to diff --git a/gas/as.c b/gas/as.c index ad3d3a63912..cf8e90d7430 100644 --- a/gas/as.c +++ b/gas/as.c @@ -621,7 +621,7 @@ parse_args (int * pargc, char *** pargv) case 1: /* File name. */ if (!strcmp (optarg, "-")) - optarg = ""; + optarg = (char *) ""; new_argv[new_argc++] = optarg; new_argv[new_argc] = NULL; break;