This is the mail archive of the mailing list for the libstdc++ 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]

Warnflags in libstdc++-v3

I noticed that in one of my runs I got some warnings - which I didn't
get in other.  Investigating this, I noticed that we use WARN_FLAGS
with warnings - but do not use those flags everywhere.

My generated src/Makefile has:
WARN_FLAGS = -Wall -Wextra -Wwrite-strings -Wcast-qual
	$(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once

	-fno-implicit-templates \

LTCXXCOMPILE = $(LIBTOOL) --tag CXX --mode=compile $(CXX) $(INCLUDES) \

	$(CXXCOMPILE) -c -o $@ $<

	$(LTCXXCOMPILE) -c -o $@ $<

So, we only use the WARNFLAGS for lo to cc - but not for normal object
files, e.g. for testsuite_abi.

What's the best way to fix?  I think we should use the same warnings
for both .o and .lo files, shouldn't we?


P.S. the warnings are:
../../../../libstdc++-v3/testsuite/ In function âsymbol& get_symbol(const std::string&, const symbols&)â:
../../../../libstdc++-v3/testsuite/ warning: control reaches end of non-void function

 Andreas Jaeger,,
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature

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