Mercurial > dwindows
comparison mac/dw.m @ 2840:8752d65e2dc0
Mac: Fix warnings building with ancient GCC versions of Xcode.
Receive a warning for each clang pragma issued.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 Sep 2022 18:50:35 +0000 |
parents | 0f92f7641d04 |
children | de56f1d265b3 |
comparison
equal
deleted
inserted
replaced
2839:0f92f7641d04 | 2840:8752d65e2dc0 |
---|---|
188 /* Handle deprecation of constants in 13.0 */ | 188 /* Handle deprecation of constants in 13.0 */ |
189 #if defined(MAC_OS_VERSION_13_0) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_13_0) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) | 189 #if defined(MAC_OS_VERSION_13_0) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_13_0) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) |
190 #define BUILDING_FOR_VENTURA | 190 #define BUILDING_FOR_VENTURA |
191 #endif | 191 #endif |
192 | 192 |
193 #ifdef __clang__ | |
193 #define _DW_ELSE_AVAILABLE \ | 194 #define _DW_ELSE_AVAILABLE \ |
194 _Pragma("clang diagnostic push") \ | 195 _Pragma("clang diagnostic push") \ |
195 _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") | 196 _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") |
196 | 197 |
197 #define _DW_END_AVAILABLE _Pragma("clang diagnostic pop") | 198 #define _DW_END_AVAILABLE _Pragma("clang diagnostic pop") |
199 #else | |
200 #define _DW_ELSE_AVAILABLE | |
201 #define _DW_END_AVAILABLE | |
202 #endif | |
198 | 203 |
199 /* Macros to encapsulate running functions on the main thread | 204 /* Macros to encapsulate running functions on the main thread |
200 * on Mojave or later... and locking mutexes on earlier versions. | 205 * on Mojave or later... and locking mutexes on earlier versions. |
201 */ | 206 */ |
202 #ifdef BUILDING_FOR_MOJAVE | 207 #ifdef BUILDING_FOR_MOJAVE |