Package: gcc-4.4 Version: 4.4.5-8 Severity: minor
The && in the warning message below should probably be ||. ~$ cat typo.c #include <string.h> 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 typo.c: In function ‘main’: typo.c:7: warning: logical ‘&&’ with non-zero constant will always evaluate as true -- System Information: Debian Release: 6.0.1 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages gcc-4.4 depends on: ii binutils 2.20.1-16 The GNU assembler, linker and bina ii cpp-4.4 4.4.5-8 The GNU C preprocessor ii gcc-4.4-base 4.4.5-8 The GNU Compiler Collection (base ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libgcc1 1:4.4.5-8 GCC support library ii libgomp1 4.4.5-8 GCC OpenMP (GOMP) support library Versions of packages gcc-4.4 recommends: ii libc6-dev 2.11.2-10 Embedded GNU C Library: Developmen Versions of packages gcc-4.4 suggests: ii gcc-4.4-doc 4.4.4.nf1-1 documentation for the GNU compiler pn gcc-4.4-locales <none> (no description available) ii gcc-4.4-multilib 4.4.5-8 The GNU C compiler (multilib files pn libcloog-ppl0 <none> (no description available) ii libgcc1-dbg 1:4.4.5-8 GCC support library (debug symbols pn libgomp1-dbg <none> (no description available) pn libmudflap0-4.4-dev <none> (no description available) pn libmudflap0-dbg <none> (no description available) pn libppl-c2 <none> (no description available) pn libppl7 <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110603003405.28497.68752.report...@orbital.spiral-arm.org