Mercurial > vim
comparison src/os_macosx.m @ 13420:f80abb797a32 v8.0.1584
patch 8.0.1584: using C99 in Mac file gives compiler warning messages
commit https://github.com/vim/vim/commit/f536bf6d4518e2c66e635e39820d53f672021d87
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 6 17:55:01 2018 +0100
patch 8.0.1584: using C99 in Mac file gives compiler warning messages
Problem: Using C99 in Mac file gives compiler warning messages.
Solution: Add #prama's to avoid the warnings. (Kazunobu Kuriyama)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 06 Mar 2018 18:00:07 +0100 |
parents | 5b3d0147711b |
children | 616dc84228b7 |
comparison
equal
deleted
inserted
replaced
13419:219143fe5dcb | 13420:f80abb797a32 |
---|---|
8 */ | 8 */ |
9 | 9 |
10 /* | 10 /* |
11 * os_macosx.m -- Mac specific things for Mac OS X. | 11 * os_macosx.m -- Mac specific things for Mac OS X. |
12 */ | 12 */ |
13 | |
14 /* Suppress compiler warnings to non-C89 code. */ | |
15 #if defined(__clang__) && defined(__STRICT_ANSI__) | |
16 # pragma clang diagnostic push | |
17 # pragma clang diagnostic ignored "-Wc99-extensions" | |
18 # pragma clang diagnostic push | |
19 # pragma clang diagnostic ignored "-Wdeclaration-after-statement" | |
20 #endif | |
13 | 21 |
14 /* Avoid a conflict for the definition of Boolean between Mac header files and | 22 /* Avoid a conflict for the definition of Boolean between Mac header files and |
15 * X11 header files. */ | 23 * X11 header files. */ |
16 #define NO_X11_INCLUDES | 24 #define NO_X11_INCLUDES |
17 | 25 |
187 releasepool: | 195 releasepool: |
188 [pool release]; | 196 [pool release]; |
189 } | 197 } |
190 | 198 |
191 #endif /* FEAT_CLIPBOARD */ | 199 #endif /* FEAT_CLIPBOARD */ |
200 | |
201 /* Lift the compiler warning suppression. */ | |
202 #if defined(__clang__) && defined(__STRICT_ANSI__) | |
203 # pragma clang diagnostic pop | |
204 # pragma clang diagnostic pop | |
205 #endif |