Loading ...
Sorry, an error occurred while loading the content.

Re: [patch] suppress warnings on Win32

Expand Messages
  • Christian Brabandt
    Hi ... This patch fixes those warnings. Mit freundlichen Grüßen Christian -- Die unzureichende Sinneswahrnehmung wiederlegt die Unendlichkeit nicht. --
    Message 1 of 5 , Jan 30, 2013
    • 0 Attachment
      Hi

      On Mi, 30 Jan 2013, skeept wrote:

      > I have some warnings when compiling with visual studio 2012:
      >
      > ex_cmds.c(4768) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
      >
      >
      > if_perl.xs(1051) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data
      > if_perl.xs(1094) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data
      > if_perl.xs(1157) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data
      > if_perl.xs(1158) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data
      > if_perl.xs(1219) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
      > if_perl.xs(1242) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
      > if_perl.xs(1277) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
      > if_perl.xs(1282) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
      > if_perl.xs(1283) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
      > if_perl.xs(1334) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
      >
      >
      > I think the perl warning have been there for a while, I don't remember the first one being there before this last batch of updates (may be wrong tough).

      This patch fixes those warnings.

      Mit freundlichen Grüßen
      Christian
      --
      Die unzureichende Sinneswahrnehmung wiederlegt die Unendlichkeit
      nicht.
      -- Giordano Bruno (eig. Filippo Bruno)

      --
      --
      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+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Bram Moolenaar
      ... The warning in ex_cmds.c is new and caused by my change. I ll fix that one. I m not sure if the warnings in the perl code can be avoided without making it
      Message 2 of 5 , Jan 30, 2013
      • 0 Attachment
        Skeept wrote:

        > I have some warnings when compiling with visual studio 2012:
        >
        > ex_cmds.c(4768) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
        >
        >
        > if_perl.xs(1051) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data
        > if_perl.xs(1094) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data
        > if_perl.xs(1157) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data
        > if_perl.xs(1158) : warning C4244: '=' : conversion from 'IV' to 'int', possible loss of data
        > if_perl.xs(1219) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
        > if_perl.xs(1242) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
        > if_perl.xs(1277) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
        > if_perl.xs(1282) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
        > if_perl.xs(1283) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
        > if_perl.xs(1334) : warning C4244: '=' : conversion from 'IV' to 'long', possible loss of data
        >
        >
        > I think the perl warning have been there for a while, I don't remember
        > the first one being there before this last batch of updates (may be
        > wrong tough).

        The warning in ex_cmds.c is new and caused by my change. I'll fix that
        one.

        I'm not sure if the warnings in the perl code can be avoided without
        making it less portable.

        --
        Yesterday is history.
        Tomorrow is a mystery.
        Today is a gift.
        That's why it is called 'present'.

        /// Bram Moolenaar -- Bram@... -- 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+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      Your message has been successfully submitted and would be delivered to recipients shortly.