diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 58021ac0f..2d7e4d4ea 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -56,13 +56,3 @@ check_type_size("wchar_t[8]" WCHAR_T_BITS LANGUAGE CXX) if(NOT POLICY CMP0067) list(APPEND CMAKE_REQUIRED_FLAGS "${CMAKE_CXX${CMAKE_CXX_STANDARD}_EXTENSION_COMPILE_OPTION}") endif() - -check_cxx_source_compiles(" -#include - -int main() { - static_assert(WEXITSTATUS(0x007f) == 0x7f, \"This is our message we need to add because C++ is terrible\"); - return 0; -} -" -HAVE_WAITSTATUS_SIGNAL_RET) diff --git a/config_cmake.h.in b/config_cmake.h.in index 81887c52f..d0028e08e 100644 --- a/config_cmake.h.in +++ b/config_cmake.h.in @@ -20,40 +20,3 @@ /* The size of wchar_t in bits. */ #define WCHAR_T_BITS ${WCHAR_T_BITS} - -/* Enable large inode numbers on Mac OS X 10.5. */ -#ifndef _DARWIN_USE_64_BIT_INODE -# define _DARWIN_USE_64_BIT_INODE 1 -#endif - -/* Support __warn_unused on function return values. */ -#if __GNUC__ >= 3 -#ifndef __warn_unused -#define __warn_unused __attribute__ ((warn_unused_result)) -#endif -#else -#define __warn_unused -#endif - -/* Like __warn_unused, but applies to a type. - At the moment only clang supports this as a type attribute. - - We need to check for __has_attribute being a thing before or old gcc fails - #7554. -*/ -#ifndef __has_attribute - #define __has_attribute(x) 0 // Compatibility with non-clang and old gcc compilers. -#endif - -#if defined(__clang__) && __has_attribute(warn_unused_result) -#ifndef __warn_unused_type -#define __warn_unused_type __attribute__ ((warn_unused_result)) -#endif -#else -#define __warn_unused_type -#endif - -#if __has_attribute(fallthrough) -#define __fallthrough__ __attribute__ ((fallthrough)); -#else -#define __fallthrough__ -#endif