errors: don't display "warnings treated as errors"
authorTheophile Ranquet <theophile.ranquet@gmail.com>
Thu, 27 Sep 2012 10:52:47 +0000 (10:52 +0000)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 27 Sep 2012 10:26:05 +0000 (12:26 +0200)
commit46bdb8ec593ea0cfd1604b7d1253a3af1c571e6d
tree44075284223afa4d603b957257c0c0206329b437
parent1048a1c90168c3cfb38eb54c6ab83b98af1bb43e
errors: don't display "warnings treated as errors"

This line doesn't add any meaningful information anymore, the appended
[-Werror=CATEGORY] is enough.  It is actually more insightful, as it
allows to distinguish warnings treated as errors from those that
aren't.  This line is also removed by gcc 4.8.

* src/complain.c (set_warnings_issued): The only action left was
checking if the error bit corresponding to the warning issued was set,
and that function was only called once. Therefore, remove it, and do
its job directly in the caller...
(complains): here.
* src/complains.h: Adjust.
* tests/input.at: Adjust.
* NEWS: Document this change.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
NEWS
src/complain.c
src/complain.h
tests/input.at