]> granicus.if.org Git - vim/commitdiff
patch 8.0.1627: compiler warning for visibility attribute not supported v8.0.1627
authorBram Moolenaar <Bram@vim.org>
Thu, 22 Mar 2018 19:26:50 +0000 (20:26 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 22 Mar 2018 19:26:50 +0000 (20:26 +0100)
Problem:    Compiler warning for visibility attribute not supported on MinGW
            builds.
Solution:   Don't add the attribute when we don't expect it to work.
            (Christian Brabandt)

src/libvterm/src/vterm_internal.h
src/version.c

index 3e7f1e5cb3383517f3631cfb2bd5d789fe466a83..a06d57775c396a22b3dbe8ccfb20f66d2831bcf5 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <stdarg.h>
 
-#if defined(__GNUC__)
+#if defined(__GNUC__) && !defined(__MINGW32__)
 # define INTERNAL __attribute__((visibility("internal")))
 # define UNUSED __attribute__((unused))
 #else
index e4878d6af7406243ebc8a236eaa49f1fd47a0e21..0cc4920669207e26e16f84769f3aa8a183b9469c 100644 (file)
@@ -766,6 +766,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1627,
 /**/
     1626,
 /**/