Patch 8.0.1584
Problem:    Using C99 in Mac file gives compiler warning messages.
Solution:   Add #prama's to avoid the warnings. (Kazunobu Kuriyama)
Files:      src/os_macosx.m


*** ../vim-8.0.1583/src/os_macosx.m     2017-11-18 23:09:30.442768859 +0100
--- src/os_macosx.m     2018-03-06 17:53:40.381546052 +0100
***************
*** 11,16 ****
--- 11,24 ----
   * 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,191 ****
--- 197,205 ----
  }
  
  #endif /* FEAT_CLIPBOARD */
+ 
+ /* Lift the compiler warning suppression. */
+ #if defined(__clang__) && defined(__STRICT_ANSI__)
+ # pragma clang diagnostic pop
+ # pragma clang diagnostic pop
+ #endif
*** ../vim-8.0.1583/src/version.c       2018-03-06 17:43:18.589288912 +0100
--- src/version.c       2018-03-06 17:53:29.145613684 +0100
***************
*** 768,769 ****
--- 768,771 ----
  {   /* Add new patch number below this line */
+ /**/
+     1584,
  /**/

-- 
CRONE:  Who sent you?
ARTHUR: The Knights Who Say GNU!
CRONE:  Aaaagh!  (she looks around in rear) No!  We have no licenses here.
           "Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui