We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
[[nodiscard]]
1 parent ea77c96 commit c225302Copy full SHA for c225302
src/util/nodiscard.h
@@ -9,17 +9,6 @@ Author: Diffblue Ltd.
9
#ifndef CPROVER_UTIL_NODISCARD_H
10
#define CPROVER_UTIL_NODISCARD_H
11
12
-#if __has_cpp_attribute(nodiscard)
13
-# ifdef __clang__
14
-# pragma GCC diagnostic ignored "-Wc++1z-extensions"
15
-# endif
16
-// NOLINTNEXTLINE(whitespace/braces)
17
-# define NODISCARD [[nodiscard]]
18
-#elif __has_cpp_attribute(gnu::warn_unused_result)
19
20
-# define NODISCARD [[gnu::warn_unused_result]]
21
-#else
22
-# define NODISCARD
23
-#endif
+#define NODISCARD [[nodiscard]]
24
25
#endif // CPROVER_UTIL_NODISCARD_H
0 commit comments