[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#442950: g++-4.2: -Wwrite-strings getting turned on for no aparent reason



Package: g++-4.2
Version: 4.2.1-4
Severity: minor

Hi. Sometime in the last month or so, g++ has started spitting out at me a
bunch of "warning: deprecated conversion from string constant to ‘char*’"
messages. This apparently comes from -Wwrite-strings. However, according to the
man/info pages, this option shouldn't be turned on unless explicitly requrested
(not even -Wall turns it on). My makefile certainly certainly isn't turning it
on, and I don't get this message when compiling in Fedora or OS/X. I've looked
the the changelog.Debian and haven't seen anything to explain this. I can turn
it off with a CXXFLAGS=-Wno-write-strings, but it's a pain to remeber this each
time so I'd really appreciate it if you could fix this. :)

Thanks, 

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (110, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21cavy1
Locale: LANG=he_IL.UTF-8, LC_CTYPE=he_IL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages g++-4.2 depends on:
ii  gcc-4.2                       4.2.1-4    The GNU C compiler
ii  gcc-4.2-base                  4.2.1-4    The GNU Compiler Collection (base 
ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries
ii  libstdc++6-4.2-dev            4.2.1-4    The GNU Standard C++ Library v3 (d

g++-4.2 recommends no packages.

-- no debconf information




Reply to: