diff --git a/deps/nfde/CMakeLists.txt b/deps/nfde/CMakeLists.txt index b3c360bb..ece9aad9 100644 --- a/deps/nfde/CMakeLists.txt +++ b/deps/nfde/CMakeLists.txt @@ -1,6 +1,10 @@ cmake_minimum_required(VERSION 3.2) project(nativefiledialog-extended) +if(NOT MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") +endif() + set(nfd_PLATFORM Undefined) if(WIN32) set(nfd_PLATFORM PLATFORM_WIN32) diff --git a/deps/nfde/src/nfd_cocoa.m b/deps/nfde/src/nfd_cocoa.m index c49851d5..5d74b13d 100644 --- a/deps/nfde/src/nfd_cocoa.m +++ b/deps/nfde/src/nfd_cocoa.m @@ -75,7 +75,7 @@ static void AddFilterListToDialog(NSSavePanel* dialog, NSArray* allowedFileTypes = BuildAllowedFileTypes(filterList, filterCount); // set it on the dialog - [dialog setAllowedContentTypes:allowedFileTypes]; + [dialog setAllowedFileTypes:allowedFileTypes]; } static void SetDefaultPath(NSSavePanel* dialog, const nfdnchar_t* defaultPath) {