Package: libpng12-dev Version: 1.2.49-1 Severity: normal I use libpng in my C++ program. This works fine.
However when compiling in C++11 mode, with a very recent version of gcc, I get the following warning when compiling: CXX image-png.o In file included from image-png.h:18:0, from image-png.cc:15: /usr/include/libpng12/png.h:2659:31: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : ^ /usr/include/libpng12/png.h:2667:31: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : ^ /usr/include/libpng12/png.h:2675:31: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : ^ In practice this still works as intended (modulo the warning), but as I understand it, it's not guaranteed that it will. Luckily, the fix is very simple and safe: Add a space between the string ("%s") and "m". Thanks, -miles -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libpng12-dev depends on: ii libpng12-0 1.2.49-1 ii zlib1g-dev 1:1.2.7.dfsg-11 libpng12-dev recommends no packages. libpng12-dev suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org