From: hartmann Date: Mon, 10 Jan 2000 14:45:48 +0000 (+0000) Subject: Similar fix for optimized mode. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ffab2a5d47b9b739bf0d020ba934a9e257db0dc;p=dealii-svn.git Similar fix for optimized mode. git-svn-id: https://svn.dealii.org/trunk@2182 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/exceptions.h b/deal.II/base/include/base/exceptions.h index 01bfce0994..85ecd00a1f 100644 --- a/deal.II/base/include/base/exceptions.h +++ b/deal.II/base/include/base/exceptions.h @@ -140,7 +140,7 @@ * not recover from programming errors. * * If the preprocessor variable #DEBUG# is not set, then nothing - * happens, i.e. the #Assert# macro is expanded to #(void) 0;#. + * happens, i.e. the #Assert# macro is expanded to #{}#. * * Sometimes, there is no useful condition for an exception other * than that the program flow should not have reached a certain point, @@ -430,7 +430,7 @@ void __IssueError_Throw (const char *file, #else //////////////////////////////////////// #define Assert(cond, exc) \ - (void) 0 + { } #endif ////////////////////////////////////////