[nfde] Suppress warnings

This commit is contained in:
Gary Talent 2022-05-25 21:40:46 -05:00
parent 857094a454
commit 296ebe9d78
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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) {