From 97830986a14b00011755d26469889a6627378ced Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Mon, 22 Feb 2016 17:27:30 -0500 Subject: [PATCH] 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. --- gas/ChangeLog | 4 ++++ gas/as.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.30.2