Permalink
Browse files

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)
  • Loading branch information...
brammool committed Mar 6, 2018
1 parent fc6f16b commit f536bf6d4518e2c66e635e39820d53f672021d87
Showing with 16 additions and 0 deletions.
  1. +14 −0 src/os_macosx.m
  2. +2 −0 src/version.c
@@ -11,6 +11,14 @@
* os_macosx.m -- Mac specific things for Mac OS X.
*/
/* Suppress compiler warnings to non-C89 code. */
#if defined(__clang__) && defined(__STRICT_ANSI__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc99-extensions"
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdeclaration-after-statement"
#endif
/* Avoid a conflict for the definition of Boolean between Mac header files and
* X11 header files. */
#define NO_X11_INCLUDES
@@ -189,3 +197,9 @@
}
#endif /* FEAT_CLIPBOARD */
/* Lift the compiler warning suppression. */
#if defined(__clang__) && defined(__STRICT_ANSI__)
# pragma clang diagnostic pop
# pragma clang diagnostic pop
#endif
@@ -766,6 +766,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1584,
/**/
1583,
/**/

0 comments on commit f536bf6

Please sign in to comment.