diff options
author | Gerald Combs <gerald@wireshark.org> | 2021-07-13 09:27:14 -0700 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-07-13 23:56:42 +0000 |
commit | 9c344b207d83723eee961a36c022a36a08a4c7de (patch) | |
tree | 968fbc864a052a0af42384f850a73588da53a39a /ui/CMakeLists.txt | |
parent | a7d927a9e93377ff40b019430def26bfd61709f5 (diff) |
CMake: Fix nullability warnings for the version_info target.
Add "SYSTEM" to "target_include_directories(version_info ...", which
keeps
```
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
unsigned char *_base;
^
```
from being printed here.
Diffstat (limited to 'ui/CMakeLists.txt')
-rw-r--r-- | ui/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt index 0901eb7245..4a959bc013 100644 --- a/ui/CMakeLists.txt +++ b/ui/CMakeLists.txt @@ -95,7 +95,7 @@ endif() target_link_libraries(version_info PRIVATE ${ZLIB_LIBRARIES}) -target_include_directories(version_info PRIVATE ${ZLIB_INCLUDE_DIRS}) +target_include_directories(version_info SYSTEM PRIVATE ${ZLIB_INCLUDE_DIRS}) set_target_properties(ui version_info PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}" |