Package: gcc-4.4
Version: 4.4.5-8
Severity: minor
The shell script below reproduces this problem. Notice that the
function name is incorrect (on my system the name shown is "T.4"). I
get this result when I run the script:
~$ sh t98.sh
t98.c: In function ‘T.4’:
t98.c:5: warning: assuming signed
Package: gcc-4.4
Version: 4.4.5-8
Severity: minor
The && in the warning message below should probably be ||.
~$ cat typo.c
#include
const char *validchars = "123";
char x = 'y';
int main (int argc, char *argv[])
{
return (1 || (0 == strchr (argv[0], x)));
}
~$ gcc-Wlogical-op -O2 typo.c
2 matches
Mail list logo