On 16/04/2018 08:16 a.m., Bram Moolenaar wrote:
>
> [...]
> If you notice a problem because of this patch, please speak up!
> Also if it's just a compiler warning.  We want to know if this C99
> feature works for everybody.

I'm using mingw-w64 on Windows 7, gcc 7.2.0, and I don't get any
warnings related to the C99 feature, but I get these warnings:

--------------------
undo.c: In function 'u_save_cursor':
undo.c:270:6: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
     if (top > curbuf->b_ml.ml_line_count
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      || top >= bot
      ^~~~~~~~~~~~~

[...]
userfunc.c: In function 'get_funccal_local_ht':
userfunc.c:3594:2: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
  for (i = 0; i < debug_backtrace_level; i++)
  ^~~
userfunc.c: In function 'get_funccal_local_var':
userfunc.c:3594:2: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
  for (i = 0; i < debug_backtrace_level; i++)
  ^~~
userfunc.c: In function 'get_funccal_args_ht':
userfunc.c:3594:2: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
  for (i = 0; i < debug_backtrace_level; i++)
  ^~~
userfunc.c: In function 'get_funccal_args_var':
userfunc.c:3594:2: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
  for (i = 0; i < debug_backtrace_level; i++)

[...]
gui_dwrite.cpp: In member function 'HRESULT DWriteContext::SetDrawingMode(DrawingMode)': gui_dwrite.cpp:950:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (hr == D2DERR_RECREATE_TARGET)
--------------------

--
Cesar

--
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui