Compare commits

..

2 Commits

Author SHA1 Message Date
Michael Savage
73c0126a9d
Merge 5e1e807358 into 982ade4cf9 2025-03-18 01:18:04 +01:00
Nic Barker
982ade4cf9 [Compilers] Add a dummy function to suppress unused variable warning in GCC
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
2025-03-18 11:21:23 +13:00

4
clay.h
View File

@ -102,6 +102,10 @@
static uint8_t CLAY__ELEMENT_DEFINITION_LATCH; static uint8_t CLAY__ELEMENT_DEFINITION_LATCH;
// GCC marks the above CLAY__ELEMENT_DEFINITION_LATCH as an unused variable for files that include clay.h but don't declare any layout
// This is to suppress that warning
static inline void Clay__SuppressUnusedLatchDefinitionVariableWarning(void) { (void) CLAY__ELEMENT_DEFINITION_LATCH; }
// Publicly visible layout element macros ----------------------------------------------------- // Publicly visible layout element macros -----------------------------------------------------
/* This macro looks scary on the surface, but is actually quite simple. /* This macro looks scary on the surface, but is actually quite simple.