Avoid compiler warnings when compiling with NDEBUG