sapling/CMake/EdenCompilerSettings.cmake
Xavier Deguillard 205eb80a76 oss: compile with -Wno-nullability-completeness
Summary:
On macOS, the compiler shows tons of warnings due to our use of pointers where
nullability attributes aren't set, and the compiler complains about it. This
makes finding legitimate warnings/errors almost impossible, thus for now let's
disable these.

Reviewed By: fanzeyi

Differential Revision: D27862116

fbshipit-source-id: 8ea2c27a0cfd6cbd484fca6be5f15c772d9f4589
2021-04-19 15:08:22 -07:00

9 lines
265 B
CMake

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
if (NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nullability-completeness")
endif()