To: vim_dev@googlegroups.com Subject: Patch 8.0.1584 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///