variadic macro warning on mac os
oxycoder opened this issue · 0 comments
oxycoder commented
XCode give warning when declare message type as below:
enum class MessageType : int
{
ENTER_SERVER = 0,
COUNT
};
YOJIMBO_DECLARE_MESSAGE_TYPE(static_cast<int>(MessageType::ENTER_SERVER), EnterServer)
happen on this line
#define YOJIMBO_NEW( a, T, ... ) ( new ( (a).Allocate( sizeof(T), __FILE__, __LINE__ ) ) T(__VA_ARGS__) )
XCode 10.3
Mac OS Mojave
Currently i'm suppress the warning by add complier flag -Wno-gnu-zero-variadic-macro-arguments
Is there any better workaround for this problem?