From a0a055ddb97b74b20fa375ca71387b4aed6a15c9 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 7 Dec 2005 07:37:13 +0000 Subject: [PATCH] set cppaswarn as the default git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7938 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Preprocessor/cpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Preprocessor/cpp.c b/Source/Preprocessor/cpp.c index dc4755429..f80bddd3a 100644 --- a/Source/Preprocessor/cpp.c +++ b/Source/Preprocessor/cpp.c @@ -30,7 +30,7 @@ static int single_include = 1; /* Only include each file once */ static Hash *included_files = 0; static List *dependencies = 0; static SwigScanner *id_scan = 0; -static int error_as_warning = 0; /* Understand the cpp #error directive as a #warning */ +static int error_as_warning = 1; /* Understand the cpp #error directive as a #warning */ /* Test a character to see if it starts an identifier */ #define isidentifier(c) ((isalpha(c)) || (c == '_') || (c == '$'))