Re: C++ PATCH to fix -Wpedantic -Werror=write-strings behavior (PR c++/79791)

2017-03-02 Thread Jason Merrill
OK. On Thu, Mar 2, 2017 at 8:31 AM, Marek Polacek wrote: > This PR complains that the -Wpedantic -Werror=write-strings combination > doesn't > result in an error but in a pedwarn, which I think is a valid point. The > principle is that more specific options take precedence

C++ PATCH to fix -Wpedantic -Werror=write-strings behavior (PR c++/79791)

2017-03-02 Thread Marek Polacek
This PR complains that the -Wpedantic -Werror=write-strings combination doesn't result in an error but in a pedwarn, which I think is a valid point. The principle is that more specific options take precedence over less specific options, so e.g. -Wpedantic -Wno-write-strings shouldn't give a