diff options
Diffstat (limited to 'gdb/unittests')
-rw-r--r-- | gdb/unittests/string_view-selftests.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/unittests/string_view-selftests.c b/gdb/unittests/string_view-selftests.c index 2d7261d..86c8f6d 100644 --- a/gdb/unittests/string_view-selftests.c +++ b/gdb/unittests/string_view-selftests.c @@ -23,6 +23,15 @@ #define GNULIB_NAMESPACE gnulib +#include "diagnostics.h" + +/* Since this file uses GNULIB_NAMESPACE, some code defined in headers ends up + using system functions rather than gnulib replacements. This is not really + a problem for this test, but it generates some warnings with Clang, silence + them. */ +DIAGNOSTIC_PUSH +DIAGNOSTIC_IGNORE_USER_DEFINED_WARNINGS + #include "defs.h" #include "gdbsupport/selftest.h" #include "gdbsupport/gdb_string_view.h" @@ -34,6 +43,8 @@ #include <fstream> #include <iostream> +DIAGNOSTIC_POP + /* libstdc++'s testsuite uses VERIFY. */ #define VERIFY SELF_CHECK |