Skip to content

Commit

Permalink
Resolved compiler warnings with gcc-4.2.1 compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Hiebert committed Nov 6, 2009
1 parent 3d5b1e0 commit cfef374
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lregex.c
Expand Up @@ -408,7 +408,7 @@ static void processLanguageRegex (const langType language,
const char* regexfile = parameter + 1;
FILE* const fp = fopen (regexfile, "r");
if (fp == NULL)
error (WARNING | PERROR, regexfile);
error (WARNING | PERROR, "%s", regexfile);
else
{
vString* const regex = vStringNew ();
Expand Down
2 changes: 1 addition & 1 deletion sort.c
Expand Up @@ -109,7 +109,7 @@ static void failedSort (FILE *const fp, const char* msg)
if (fp != NULL)
fclose (fp);
if (msg == NULL)
error (FATAL | PERROR, cannotSort);
error (FATAL | PERROR, "%s", cannotSort);
else
error (FATAL, "%s: %s", msg, cannotSort);
}
Expand Down

0 comments on commit cfef374

Please sign in to comment.