From: Arnaud Giersch Date: Mon, 6 Jan 2020 10:49:31 +0000 (+0100) Subject: Drop never used macro XBT_UNREACHABLE. X-Git-Tag: v3.25~158 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4e5ae67366c6e65c07d8c7304c494a9991b261d2 Drop never used macro XBT_UNREACHABLE. --- diff --git a/include/xbt/base.h b/include/xbt/base.h index 4b7525a2cb..a81bdb2cbd 100644 --- a/include/xbt/base.h +++ b/include/xbt/base.h @@ -13,21 +13,6 @@ # define _GNU_SOURCE #endif -// Teach the compiler that some code path is unreachable: -#if defined(__has_builtin) -# if __has_builtin(__builtin_unreachable) -# define XBT_UNREACHABLE() __builtin_unreachable() -# else -# include -# define XBT_UNREACHABLE() abort() -# endif -#elif (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) -# define XBT_UNREACHABLE() __builtin_unreachable() -#else -# include -# define XBT_UNREACHABLE() abort() -#endif - /* On MinGW, stdio.h defines __MINGW_PRINTF_FORMAT and __MINGW_SCANF_FORMAT which are the suitable format style (either gnu_printf or ms_printf) depending on which version is available (__USE_MINGW_ANSI_STDIO): */