# HG changeset patch # User klao # Date 1083281082 0 # Node ID ceb56ff9d07f6852d3684991314e61dccfa3d1b8 # Parent afbdf8a3a633e40de9801fbf79dee90421f5179f The -W gcc option _does_ matter even if you use -Wall! Minor changes. diff -r afbdf8a3a633 -r ceb56ff9d07f src/include/error.h --- a/src/include/error.h Thu Apr 29 22:39:17 2004 +0000 +++ b/src/include/error.h Thu Apr 29 23:24:42 2004 +0000 @@ -6,6 +6,7 @@ //! \file //! \brief Basic error handling (signaling) routines. +#include #include #include @@ -27,7 +28,9 @@ public: Exception() {} explicit Exception(const std::string &s) { buf << s; } - Exception(const Exception &e) { buf << e.buf.str(); } + Exception(const Exception &e) : std::exception() { + buf << e.buf.str(); + } virtual ~Exception() throw() {} virtual const char* what() const throw() { @@ -56,8 +59,8 @@ */ # define FIXME(msg) \ - do { throw ::hugo::Exception("FIXME: " msg) << " (in: " \ - << __FILE__ << ", " << __LINE__ << ")"; \ + do { throw ::hugo::Exception() << "FIXME: " msg " (in: " \ + __FILE__ ", " << __LINE__ << ")"; \ } while(false) } diff -r afbdf8a3a633 -r ceb56ff9d07f src/test/makefile --- a/src/test/makefile Thu Apr 29 22:39:17 2004 +0000 +++ b/src/test/makefile Thu Apr 29 23:24:42 2004 +0000 @@ -1,5 +1,5 @@ INCLUDEDIRS ?= -I../include -CXXFLAGS += -Wall -O3 -ansi -pedantic $(INCLUDEDIRS) +CXXFLAGS += -W -Wall -O3 -ansi -pedantic $(INCLUDEDIRS) #LEDAROOT ?= /ledasrc/LEDA-4.1 BINARIES = dijkstra_heap_test unionfind_test error_test