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

Compile warning.

Expand Messages
  • Elias Diem
    Hello all, I get a compiler warning for regexp_nfa.c. ... gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0
    Message 1 of 2 , May 25 3:40 AM
    • 0 Attachment
      Hello all,

      I get a compiler warning for regexp_nfa.c.

      ----------------------------------------
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/local/include -O2 -fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/search.o search.c
      In file included from regexp.c:7751:0:
      regexp_nfa.c: In function ‘nfa_regmatch’:
      regexp_nfa.c:3425:10: warning: ‘go_to_nextline’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      ----------------------------------------

      My version info:

      ----------------------------------------
      VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 25 2013 12:08:44)
      Included patches: 1-1012
      Huge version with GTK2 GUI. Features included (+) or not (-):
      ----------------------------------------

      --
      Greetings
      Elias


      --
      --
      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
      ... I can see why. Strange that my compiler doesn t complain. I ll fix it. -- At some point in the project somebody will start whining about the need to
      Message 2 of 2 , May 25 10:41 AM
      • 0 Attachment
        Elias Diem wrote:

        > I get a compiler warning for regexp_nfa.c.
        >
        > ----------------------------------------
        > gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/local/include -O2 -fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/search.o search.c
        > In file included from regexp.c:7751:0:
        > regexp_nfa.c: In function ‘nfa_regmatch’:
        > regexp_nfa.c:3425:10: warning: ‘go_to_nextline’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        > ----------------------------------------
        >
        > My version info:
        >
        > ----------------------------------------
        > VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 25 2013 12:08:44)
        > Included patches: 1-1012
        > Huge version with GTK2 GUI. Features included (+) or not (-):
        > ----------------------------------------

        I can see why. Strange that my compiler doesn't complain.
        I'll fix it.

        --
        At some point in the project somebody will start whining about the need to
        determine the project "requirements". This involves interviewing people who
        don't know what they want but, curiously, know exactly when they need it.
        (Scott Adams - The Dilbert principle)

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