Resolved compiler warnings with gcc-4.2.1 compiler.

git-svn-id: svn://svn.code.sf.net/p/ctags/code/trunk@747 c5d04d22-be80-434c-894e-aa346cc9e8e8
This commit is contained in:
dhiebert 2009-11-06 02:33:37 +00:00
parent 15460af163
commit 1a623bb733
2 changed files with 2 additions and 2 deletions

View File

@ -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 ();

2
sort.c
View File

@ -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);
}