Browse Source

libobs: Suppress warnings about implicit integer downcasts

Returned values are usually 64-bit in length but commonly stored in
16-bit integers anyway.
PatTheMav 2 years ago
parent
commit
6ebff6a204
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs/cmake/os-macos.cmake

+ 1 - 1
libobs/cmake/os-macos.cmake

@@ -22,7 +22,7 @@ target_sources(
           util/threading-posix.h
           util/apple/cfstring-utils.h)
 
-target_compile_options(libobs PUBLIC -Wno-strict-prototypes)
+target_compile_options(libobs PUBLIC -Wno-strict-prototypes -Wno-shorten-64-to-32)
 
 set_property(SOURCE util/platform-cocoa.m obs-cocoa.m PROPERTY COMPILE_FLAGS -fobjc-arc)
 set_property(TARGET libobs PROPERTY FRAMEWORK TRUE)