Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2017 18:26:30 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322671 - head/contrib/binutils/gas/config
Message-ID:  <201708181826.v7IIQUUQ065096@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Aug 18 18:26:30 2017
New Revision: 322671
URL: https://svnweb.freebsd.org/changeset/base/322671

Log:
  gas: fix "format string is not a string literal" errors on mips
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/contrib/binutils/gas/config/tc-mips.c

Modified: head/contrib/binutils/gas/config/tc-mips.c
==============================================================================
--- head/contrib/binutils/gas/config/tc-mips.c	Fri Aug 18 18:20:51 2017	(r322670)
+++ head/contrib/binutils/gas/config/tc-mips.c	Fri Aug 18 18:26:30 2017	(r322671)
@@ -3310,7 +3310,7 @@ macro_end (void)
 	     warning now.  */
 	  const char *msg = macro_warning (subtype);
 	  if (msg != 0)
-	    as_warn (msg);
+	    as_warn ("%s", msg);
 	}
       else
 	{
@@ -14463,7 +14463,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT asec
 	{
 	  const char *msg = macro_warning (fragp->fr_subtype);
 	  if (msg != 0)
-	    as_warn_where (fragp->fr_file, fragp->fr_line, msg);
+	    as_warn_where (fragp->fr_file, fragp->fr_line, "%s", msg);
 	}
 
       /* Go through all the fixups for the first sequence.  Disable them



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708181826.v7IIQUUQ065096>