[nfde] Suppress warnings
This commit is contained in:
parent
857094a454
commit
296ebe9d78
4
deps/nfde/CMakeLists.txt
vendored
4
deps/nfde/CMakeLists.txt
vendored
@ -1,6 +1,10 @@
|
|||||||
cmake_minimum_required(VERSION 3.2)
|
cmake_minimum_required(VERSION 3.2)
|
||||||
project(nativefiledialog-extended)
|
project(nativefiledialog-extended)
|
||||||
|
|
||||||
|
if(NOT MSVC)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(nfd_PLATFORM Undefined)
|
set(nfd_PLATFORM Undefined)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(nfd_PLATFORM PLATFORM_WIN32)
|
set(nfd_PLATFORM PLATFORM_WIN32)
|
||||||
|
2
deps/nfde/src/nfd_cocoa.m
vendored
2
deps/nfde/src/nfd_cocoa.m
vendored
@ -75,7 +75,7 @@ static void AddFilterListToDialog(NSSavePanel* dialog,
|
|||||||
NSArray* allowedFileTypes = BuildAllowedFileTypes(filterList, filterCount);
|
NSArray* allowedFileTypes = BuildAllowedFileTypes(filterList, filterCount);
|
||||||
|
|
||||||
// set it on the dialog
|
// set it on the dialog
|
||||||
[dialog setAllowedContentTypes:allowedFileTypes];
|
[dialog setAllowedFileTypes:allowedFileTypes];
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetDefaultPath(NSSavePanel* dialog, const nfdnchar_t* defaultPath) {
|
static void SetDefaultPath(NSSavePanel* dialog, const nfdnchar_t* defaultPath) {
|
||||||
|
Loading…
Reference in New Issue
Block a user