Skip to content

Commit

Permalink
🛠 Fix CI checks!
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Nov 17, 2021
1 parent 8474de3 commit 8f5549b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/ztd/version/detail/version.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
#define ZTD_WCHAR_T_UTF16_COMPATIBLE_I_ ZTD_DEFAULT_OFF
#endif

#if ZTD_IS_ON(ZTD_WCHAR_T_UTF32_COMPATIBLE_I_) && ZTD_IS_ON(ZTD_WCHAR_T_UTF32_COMPATIBLE_I_)
#if ZTD_IS_ON(ZTD_WCHAR_T_UTF32_COMPATIBLE_I_) && ZTD_IS_ON(ZTD_WCHAR_T_UTF16_COMPATIBLE_I_)
#error Both ZTD_WCHAR_T_UTF32_COMPATIBLE_I_ and ZTD_WCHAR_T_UTF32_COMPATIBLE_I_ are on, meaning that the wchar_t encoding is both UTF-32 and UTF-16 compatible. This cannot be right: please check your build macros for WCHAR_T-related ZTD defines, or file a bug report!
#endif

Expand Down
10 changes: 10 additions & 0 deletions source/ztd/idk/bit.load_store.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@
ztd_static_assert(((_N % 8) == 0), "👍")


#if ZTD_IS_ON(ZTD_COMPILER_GCC_I_) || ZTD_IS_ON(ZTD_COMPILER_CLANG_I_)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif

#if ((CHAR_BIT % 8) == 0)
ZTDC_GENERATE_LOAD8_STORE8_DEFINITIONS(8);
ZTDC_GENERATE_LOAD8_STORE8_DEFINITIONS(16);
Expand Down Expand Up @@ -235,4 +240,9 @@ ZTDC_GENERATE_LOAD8_STORE8_DEFINITIONS(128);
#endif
#endif

#if ZTD_IS_ON(ZTD_COMPILER_GCC_I_) || ZTD_IS_ON(ZTD_COMPILER_CLANG_I_)
#pragma GCC diagnostic pop
#endif


#undef ZTDC_GENERATE_LOAD8_STORE8_DEFINITIONS

0 comments on commit 8f5549b

Please sign in to comment.