Skip to content

Commit

Permalink
libcpp/macro.c: dodge another -Werror=format-security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tkchia committed Feb 10, 2018
1 parent c384e5e commit 5ce2e11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcpp/macro.c
Original file line number Diff line number Diff line change
Expand Up @@ -3090,7 +3090,7 @@ create_iso_definition (cpp_reader *pfile, cpp_macro *macro)
function-like macros, but not at the end. */
if (following_paste_op)
{
cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
cpp_error (pfile, CPP_DL_ERROR, "%s", paste_op_error_msg);
return false;
}
break;
Expand All @@ -3103,7 +3103,7 @@ create_iso_definition (cpp_reader *pfile, cpp_macro *macro)
function-like macros, but not at the beginning. */
if (macro->count == 1)
{
cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
cpp_error (pfile, CPP_DL_ERROR, "%s", paste_op_error_msg);
return false;
}

Expand Down

0 comments on commit 5ce2e11

Please sign in to comment.