Message ID | e496f426-102a-5f85-9d1c-7ab750a17ff8@redhat.com |
---|---|
State | New |
Headers | show |
Series | [v2] Fix failure when CFLAGS contains -DNDEBUG (Bug 25251) | expand |
diff --git a/assert/tst-assert-c++.cc b/assert/tst-assert-c++.cc index 41cb487512..c01fc8bd25 100644 --- a/assert/tst-assert-c++.cc +++ b/assert/tst-assert-c++.cc @@ -16,6 +16,9 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ +/* Undefine NDEBUG to ensure the build system e.g. CFLAGS/CXXFLAGS + does not disable the asserts we want to test. */ +#undef NDEBUG #include <assert.h> /* The C++ standard requires that if the assert argument is a constant