Skip to content

Commit baee613

Browse files
committed
Silence nullability extension warnings with GCC ##build
1 parent e7c485e commit baee613

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

libr/include/r_types_null.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ extern "C" {
1010
// -Wno-nullability-completeness
1111

1212
#ifdef __clang__
13+
#if __has_warning("-Wnullability-completeness")
1314
#pragma clang diagnostic ignored "-Wnullability-completeness"
1415
#endif
16+
#if __has_warning("-Wnullability-extension")
17+
#pragma clang diagnostic ignored "-Wnullability-extension"
18+
#endif
19+
#endif
1520

1621
#if defined(__clang__)
1722
// Clang supports _Nonnull / _Nullable with -fnullability

0 commit comments

Comments
 (0)