Patch 8.0.1710
Problem:    Building with Ruby fails.
Solution:   Don't add -ansi when building with Ruby.
Files:      src/configure.ac, src/auto/configure


*** ../vim-8.0.1709/src/configure.ac    2018-04-14 14:37:02.760137708 +0200
--- src/configure.ac    2018-04-14 15:51:14.191203469 +0200
***************
*** 4403,4411 ****
        CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
  fi
  
! dnl Declare what standards the code should comply with.  But not when using
! dnl GTK, the header files cause all kinds of warnings.
! if test "$GCC" = yes -a "$GUITYPE" != "GTK"; then
    CFLAGS="$CFLAGS -ansi"
  fi
  
--- 4403,4412 ----
        CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
  fi
  
! dnl Declare what standards the code should comply with.
! dnl But not when using GTK, the header files cause all kinds of warnings.
! dnl But not when using Ruby, it needs "inline".
! if test "$GCC" = yes -a "$GUITYPE" != "GTK" -a "X$RUBY_CFLAGS" = "X"; then
    CFLAGS="$CFLAGS -ansi"
  fi
  
*** ../vim-8.0.1709/src/auto/configure  2018-04-14 14:37:02.764137672 +0200
--- src/auto/configure  2018-04-14 15:51:17.195181287 +0200
***************
*** 14434,14440 ****
        CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
  fi
  
! if test "$GCC" = yes -a "$GUITYPE" != "GTK"; then
    CFLAGS="$CFLAGS -ansi"
  fi
  
--- 14434,14440 ----
        CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
  fi
  
! if test "$GCC" = yes -a "$GUITYPE" != "GTK" -a "X$RUBY_CFLAGS" = "X"; then
    CFLAGS="$CFLAGS -ansi"
  fi
  
*** ../vim-8.0.1709/src/version.c       2018-04-14 14:37:02.768137636 +0200
--- src/version.c       2018-04-14 16:11:51.078213605 +0200
***************
*** 764,765 ****
--- 764,767 ----
  {   /* Add new patch number below this line */
+ /**/
+     1710,
  /**/

-- 
I'm so disorganized my keyboard isn't even in alphabetical order!

 /// 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