[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: 2.95.1: warning about exceptions with -fno-exceptions
From: Carlo Wood <carlo () runaway ! xs4all ! nl>
Date: 1999-10-06 14:14:47
[Download RAW message or body]
Hi,
is this warning justified when using -fno-exceptions?
g++ -g -Wall -Woverloaded-virtual -Wundef -Wpointer-arith -Winline -Wwrite-strings \
-Werror -pipe -fno-exceptions -D__LIBCW__ -fpic -fpic -I- -I../../include -c \
debugmalloc.cc -o debugmalloc.o
cc1plus: warnings being treated as errors
debugmalloc.cc: In function `void * operator new(unsigned int)':
debugmalloc.cc:881: warning: operator new should throw an exception, not return NULL
debugmalloc.cc: In function `void * operator new [](unsigned int)':
debugmalloc.cc:947: warning: operator new should throw an exception, not return NULL
I suppose no test case is needed...
--
Carlo Wood <carlo@runaway.xs4all.nl>
PS version 2.95.1 (release)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic