mirror of
https://github.com/PureDarwin/PureDarwin.git
synced 2026-01-25 04:06:25 +00:00
Add suppress_warnings.cmake
Much of our codebase is third-party code that does not follow Apple's current coding guidelines, especially around the use of sprintf(). This macro will help development by limiting the warnings to only our code, once I apply it next commit.
This commit is contained in:
@@ -23,6 +23,7 @@ include(cmake/get_target_dependencies.cmake)
|
||||
include(cmake/install_helpers.cmake)
|
||||
include(cmake/kext.cmake)
|
||||
include(cmake/mig.cmake)
|
||||
include(cmake/suppress_warnings.cmake)
|
||||
|
||||
add_subdirectory(projects)
|
||||
add_subdirectory(src)
|
||||
|
||||
4
cmake/suppress_warnings.cmake
Normal file
4
cmake/suppress_warnings.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
macro(suppress_warnings target)
|
||||
target_compile_options(${target} PRIVATE -w)
|
||||
target_link_options(${target} PRIVATE -w)
|
||||
endmacro()
|
||||
Reference in New Issue
Block a user