From 76c329a2c28be0c23eba6563f3f8549bdb9d6d77 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 26 Jan 2006 21:33:15 +0000 Subject: [PATCH] Make default #error behaviour as expected instead of like #warning. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8566 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Preprocessor/cpp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SWIG/Source/Preprocessor/cpp.c b/SWIG/Source/Preprocessor/cpp.c index 0297b54b3..712140ecd 100644 --- a/SWIG/Source/Preprocessor/cpp.c +++ b/SWIG/Source/Preprocessor/cpp.c @@ -30,8 +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 = 1; /* Understand the cpp #error - directive as a special #warning */ +static int error_as_warning = 0; /* Understand the cpp #error directive as a special #warning */ /* Test a character to see if it starts an identifier */ #define isidentifier(c) ((isalpha(c)) || (c == '_') || (c == '$'))