mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fix warnings after Xcode 15 / target 10.13 update.
This commit is contained in:
@@ -514,7 +514,7 @@ bool UnsafeShowOpenWith(const QString &filepath) {
|
|||||||
NSArray *appsPaths = [[NSFileManager defaultManager] URLsForDirectory:NSApplicationDirectory inDomains:NSLocalDomainMask];
|
NSArray *appsPaths = [[NSFileManager defaultManager] URLsForDirectory:NSApplicationDirectory inDomains:NSLocalDomainMask];
|
||||||
if ([appsPaths count]) [openPanel setDirectoryURL:[appsPaths firstObject]];
|
if ([appsPaths count]) [openPanel setDirectoryURL:[appsPaths firstObject]];
|
||||||
[openPanel beginWithCompletionHandler:^(NSInteger result){
|
[openPanel beginWithCompletionHandler:^(NSInteger result){
|
||||||
if (result == NSFileHandlingPanelOKButton) {
|
if (result == NSModalResponseOK) {
|
||||||
if ([[openPanel URLs] count] > 0) {
|
if ([[openPanel URLs] count] > 0) {
|
||||||
NSURL *app = [[openPanel URLs] objectAtIndex:0];
|
NSURL *app = [[openPanel URLs] objectAtIndex:0];
|
||||||
NSString *path = [app path];
|
NSString *path = [app path];
|
||||||
|
@@ -250,6 +250,7 @@ PRIVATE
|
|||||||
-Wno-deprecated-volatile
|
-Wno-deprecated-volatile
|
||||||
-Wno-ambiguous-reversed-operator
|
-Wno-ambiguous-reversed-operator
|
||||||
-Wno-deprecated-declarations
|
-Wno-deprecated-declarations
|
||||||
|
-Wno-unqualified-std-cast-call
|
||||||
)
|
)
|
||||||
|
|
||||||
remove_target_sources(lib_tgcalls ${tgcalls_loc}
|
remove_target_sources(lib_tgcalls ${tgcalls_loc}
|
||||||
|
@@ -25,13 +25,6 @@ init_target(lib_tgvoip_bundled)
|
|||||||
cmake_dependent_option(LIBTGVOIP_DISABLE_ALSA "Disable libtgvoip's ALSA backend." OFF LINUX ON)
|
cmake_dependent_option(LIBTGVOIP_DISABLE_ALSA "Disable libtgvoip's ALSA backend." OFF LINUX ON)
|
||||||
cmake_dependent_option(LIBTGVOIP_DISABLE_PULSEAUDIO "Disable libtgvoip's PulseAudio backend." OFF LINUX ON)
|
cmake_dependent_option(LIBTGVOIP_DISABLE_PULSEAUDIO "Disable libtgvoip's PulseAudio backend." OFF LINUX ON)
|
||||||
|
|
||||||
if (APPLE)
|
|
||||||
target_compile_options(lib_tgvoip_bundled
|
|
||||||
PRIVATE
|
|
||||||
-Wno-unqualified-std-cast-call
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(tgvoip_loc ${third_party_loc}/libtgvoip)
|
set(tgvoip_loc ${third_party_loc}/libtgvoip)
|
||||||
|
|
||||||
nice_target_sources(lib_tgvoip_bundled ${tgvoip_loc}
|
nice_target_sources(lib_tgvoip_bundled ${tgvoip_loc}
|
||||||
@@ -135,6 +128,11 @@ PRIVATE
|
|||||||
TGVOIP_USE_DESKTOP_DSP
|
TGVOIP_USE_DESKTOP_DSP
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_compile_options_if_exists(lib_tgvoip_bundled
|
||||||
|
PRIVATE
|
||||||
|
-Wno-unqualified-std-cast-call
|
||||||
|
)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
target_compile_options(lib_tgvoip_bundled
|
target_compile_options(lib_tgvoip_bundled
|
||||||
|
Submodule Telegram/codegen updated: 145c9e6171...805b851d69
Submodule Telegram/lib_webview updated: a9994463f2...cea8958ca2
Reference in New Issue
Block a user