This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Removing -frwitable-strings


Matt Austern <austern@apple.com> writes:

> At the risk of getting boring by repeating myself...  This might be an
> argument for treating C and C++ differently.  The two languages have
> different rules about the types of string literals, and it's a lot
> harder to
> call 'char* p = "foo"' clean code in C++ than it is in C.

C++ is treated differently.  -fwritable-strings does not work in C++,
and -Wwrite-strings is effectively always on.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]