Skip to content
Snippets Groups Projects
Commit 9b3ae2c7 authored by Claus-Justus Heine's avatar Claus-Justus Heine
Browse files

Using __ASSERT_VOID_CAST is not portable.

parent 0462cb2d
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <cassert> #include <cassert>
#ifndef ALUGRIDDEBUG #ifndef ALUGRIDDEBUG
# define alugrid_assert(EX) (__ASSERT_VOID_CAST (0)) # define alugrid_assert(EX) (static_cast<void>(0))
#else #else
#ifdef NDEBUG #ifdef NDEBUG
#warning defined ALUGRIDDEBUG and NDEBUG both leads to many warnings and is probably not reasonable... #warning defined ALUGRIDDEBUG and NDEBUG both leads to many warnings and is probably not reasonable...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment