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

Re: Patch 6.2.038 (extra)

Expand Messages
  • Bram Moolenaar
    ... I don t think these can be avoided. They are specifically for MSVC. ... This patch should fix these: ... *************** *** 778,784 **** #endif static
    Message 1 of 5 , Jul 26, 2003
    • 0 Attachment
      Bill McCarthy wrote:

      > os_win32.c:510: warning: ignoring #pragma optimize
      > os_win32.c:578: warning: ignoring #pragma optimize
      > os_win32.c:584: warning: ignoring #pragma optimize
      > os_win32.c:694: warning: ignoring #pragma optimize

      I don't think these can be avoided. They are specifically for MSVC.

      > os_win32.c: In function `decode_mouse_event':
      > os_win32.c:781: warning: type defaults to `int' in declaration of `s_dwLastClickTime'
      > os_win32.c: In function `WaitForChar':
      > os_win32.c:1055: warning: `dwEndTime' might be used uninitialized in
      > this function

      This patch should fix these:

      *** ../vim-6.2.039/src/os_win32.c Fri Jul 25 22:43:59 2003
      --- src/os_win32.c Sat Jul 26 19:52:58 2003
      ***************
      *** 778,784 ****
      #endif
      static int s_cClicks = 1;
      static BOOL s_fReleased = TRUE;
      ! static s_dwLastClickTime = 0;
      static BOOL s_fNextIsMiddle = FALSE;

      static DWORD cButtons = 0; /* number of buttons supported */
      --- 778,784 ----
      #endif
      static int s_cClicks = 1;
      static BOOL s_fReleased = TRUE;
      ! static DWORD s_dwLastClickTime = 0;
      static BOOL s_fNextIsMiddle = FALSE;

      static DWORD cButtons = 0; /* number of buttons supported */
      ***************
      *** 1052,1058 ****
      static int
      WaitForChar(long msec)
      {
      ! DWORD dwNow = 0, dwEndTime;
      INPUT_RECORD ir;
      DWORD cRecords;
      char_u ch, ch2;
      --- 1052,1058 ----
      static int
      WaitForChar(long msec)
      {
      ! DWORD dwNow = 0, dwEndTime = 0;
      INPUT_RECORD ir;
      DWORD cRecords;
      char_u ch, ch2;


      --
      ARTHUR: Be quiet! I order you to shut up.
      OLD WOMAN: Order, eh -- who does he think he is?
      ARTHUR: I am your king!
      OLD WOMAN: Well, I didn't vote for you.
      "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///
    • Bram Moolenaar
      ... I had already included this, just forgot to include this file in the patch. I ll make another one. -- OLD WOMAN: King of the WHO? ARTHUR: The Britons.
      Message 2 of 5 , Jul 26, 2003
      • 0 Attachment
        Bill McCarthy wrote:

        > > Patch 6.2.038 (extra)
        > > Problem: Warning messages when using the MingW compiler. (Bill McCarthy)
        > > Solution: Initialize variables, add parenthesis.
        > > Files: src/eval.c, src/os_win32.c, src/gui_w32.c, src/dosinst.c
        >
        > Almost perfect. I still get a warning for os_mswin.c:
        >
        > os_mswin.c: In function `to_device_units':
        > os_mswin.c:1656: warning: `ret' might be used uninitialized in this function
        > os_mswin.c: In function `points_to_pixels':
        > os_mswin.c:2852: warning: `hwnd' might be used uninitialized in this function
        >
        > A patch is attached.

        I had already included this, just forgot to include this file in the
        patch. I'll make another one.

        --
        OLD WOMAN: King of the WHO?
        ARTHUR: The Britons.
        OLD WOMAN: Who are the Britons?
        "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
        \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
        \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///
      Your message has been successfully submitted and would be delivered to recipients shortly.