Skip to content

Commit da6402c

Browse files
committed
common: xash3d_types: disable PFN_RETURNS_NONNULL attribute for MCST lcc
1 parent 9d1b03d commit da6402c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

common/xash3d_types.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ typedef int qboolean;
9191
#define NORETURN __attribute__(( noreturn ))
9292
#define NONNULL __attribute__(( nonnull ))
9393
#define RETURNS_NONNULL __attribute__(( returns_nonnull ))
94-
#if __clang__
95-
#define PFN_RETURNS_NONNULL // clang has bugged returns_nonnull for functions pointers, it's ignored and generates a warning about objective-c? O_o
94+
#if __clang__ || __MCST__
95+
// clang has bugged returns_nonnull for functions pointers, it's ignored and generates a warning about objective-c? O_o
96+
// lcc doesn't support it at all
97+
#define PFN_RETURNS_NONNULL
9698
#else
9799
#define PFN_RETURNS_NONNULL RETURNS_NONNULL
98100
#endif

0 commit comments

Comments
 (0)