Package: gcc-4.3 Version: 4.3.1-4 Severity: minor Compiling this with gcc-4.3 -Wall -c
int main (void) { return "hello" == "there"; } results in a warning: hoh.c: In function ‘main’: hoh.c:4: warning: comparison with string literal results in unspecified behavior The warning claims the behaviour is unspecified. But actually this comparison must always evaluate to false because the strings consist of different characters and must thus have different addresses. For whatever reason, there are several comparisons like that in net-snmp 5.2.3-7etch4. A gcc-help thread about this warning indicates it is intended to warn about only those uses that really are unspecified: http://news.gmane.org/find-root.php?message_id=<4794757e.3020...@redhat.com> -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.26-1-686 Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) Versions of packages gcc-4.3 depends on: ii binutils 2.18~cvs20070812-1 The GNU assembler, linker and bina ii cpp-4.3 4.3.1-4 The GNU C preprocessor ii gcc-4.3-base 4.3.1-4 The GNU Compiler Collection (base ii libc6 2.7-16 GNU C Library: Shared libraries ii libgcc1 1:4.3.1-4 GCC support library ii libgomp1 4.3.1-4 GCC OpenMP (GOMP) support library Versions of packages gcc-4.3 recommends: ii libc6-dev 2.7-16 GNU C Library: Development Librari -- no debconf information
pgpoQx2t1otpf.pgp
Description: PGP signature