From c6b0c6e0b70d6a458255b762bdd64d57e0e8b686 Mon Sep 17 00:00:00 2001 From: Bryan Bernhart Date: Thu, 14 Apr 2022 16:56:24 -0700 Subject: [PATCH] Remove unused GPGMM_NO_DISCARD macro. --- src/gpgmm/common/Compiler.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/gpgmm/common/Compiler.h b/src/gpgmm/common/Compiler.h index b08aff19e..6bd668786 100644 --- a/src/gpgmm/common/Compiler.h +++ b/src/gpgmm/common/Compiler.h @@ -52,15 +52,6 @@ # define __has_cpp_attribute(name) 0 # endif -// Use warn_unused_result on clang otherwise we can a c++1z extension warning in C++14 mode -// Also avoid warn_unused_result with GCC because it is only a function attribute and not a type -// attribute. -# if __has_cpp_attribute(warn_unused_result) && defined(__clang__) -# define GPGMM_NO_DISCARD __attribute__((warn_unused_result)) -# elif DAWN_CPP_VERSION >= 17 && __has_cpp_attribute(nodiscard) -# define GPGMM_NO_DISCARD [[nodiscard]] -# endif - # define GPGMM_DECLARE_UNUSED __attribute__((unused)) # if defined(NDEBUG) # define GPGMM_FORCE_INLINE inline __attribute__((always_inline))