This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 3/7] cast to char * when assigning to optarg
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Cc: Trevor Saunders <tbsaunde+binutils at tbsaunde dot org>
- Date: Tue, 29 Mar 2016 21:12:57 -0400
- Subject: [PATCH 3/7] cast to char * when assigning to optarg
- Authentication-results: sourceware.org; auth=none
- References: <1459300381-19313-1-git-send-email-tbsaunde+binutils at tbsaunde dot org>
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
gas/ChangeLog:
2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* as.c (parse_args): Cast literal to char * when assigning to optarg.
---
gas/as.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gas/as.c b/gas/as.c
index ad3d3a6..cf8e90d 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.1.4