[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Suspicious compiler warnings
From: |
Eli Zaretskii |
Subject: |
Suspicious compiler warnings |
Date: |
Thu, 25 Apr 2013 20:13:17 +0300 |
FYI: when compiling git head of a few days ago, I see several
warnings. They are mostly harmless, but these two look real,
especially the first one:
implicit.c: In function 'pattern_search':
implicit.c:225:15: warning: variable 'deps' set but not used
[-Wunused-but-set-variable]
job.c: In function 'new_job':
job.c:2124:12: warning: assignment discards 'const' qualifier from pointer
target type [enabled by default]
The latter one is about this:
char *nm;
if (! cmds->fileinfo.filenm)
nm = _("<builtin>"); <<<<<<<<<<<<<<<<<<<<<<<<<<<<
else
{
nm = alloca (strlen (cmds->fileinfo.filenm) + 1 + 11 + 1);
sprintf (nm, "%s:%lu", cmds->fileinfo.filenm, cmds->fileinfo.lineno);
}
HTH
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Suspicious compiler warnings,
Eli Zaretskii <=