This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11504] -Wcast-qual vs. stl_tree
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2003 13:22:02 -0000
- Subject: [Bug libstdc++/11504] -Wcast-qual vs. stl_tree
- References: <20030711212821.11504.bkoz@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11504
------- Additional Comments From bkoz at gcc dot gnu dot org 2003-09-01 13:21 -------
I agree -Wcast-qual should be added to the libstdc++ warning flags.
This could be done in one of three ways, in order of best to worst:
1) add them to all the warning flags when building and testing, by adding it to
WARN_FLAGS in GLIBCXX_EXPORT_FLAGS (in acinclude.m4)
2) add them to --build-cxx in scripts/testsuite_flags.in so that the
g++/libstdc++ runs with it
3) add it to DEFAULT_CXXFLAGS in testsuite/libstdc++-dg/normal.exp so that all
the libstdc++ testruns use it.
best,
benjamin