public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24068] New: Unconditional warning when using -fwhole-program
@ 2005-09-26 19:24 dann at godzilla dot ics dot uci dot edu
  2005-09-26 19:25 ` [Bug c/24068] " dann at godzilla dot ics dot uci dot edu
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2005-09-26 19:24 UTC (permalink / raw)
  To: gcc-bugs

When trying to compile the attached preprocessed files using
gcc -c -fwhole-program --combine xterm.i xlwmenu.i

These warnings are produced unconditionally:

/home/dann/build/Emacs-CVS/emacs/lwlib/xlwmenu.c:57: warning: prototype for
'x_alloc_nearest_color_for_widget' follows non-prototype definition
/home/dann/build/Emacs-CVS/emacs/lwlib/xlwmenu.c:58: warning: prototype for
'x_alloc_lighter_color_for_widget' follows non-prototype definition
/home/dann/build/Emacs-CVS/emacs/lwlib/xlwmenu.c:64: warning: prototype for
'x_clear_errors' follows non-prototype definition
/home/dann/build/Emacs-CVS/emacs/lwlib/xlwmenu.c:65: warning: prototype for
'x_copy_dpy_color' follows non-prototype definition

AFAICT the warnings don't make much sense. The code is correct. The functions in
questions are defined in one file and then prototyped and used in the other
file. This kind of stuff appears in countless C programs. 
Can this warning be turned off by default?

-- 
           Summary: Unconditional warning when using -fwhole-program
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24068


^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <bug-24068-1008@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2010-09-17  9:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-26 19:24 [Bug c/24068] New: Unconditional warning when using -fwhole-program dann at godzilla dot ics dot uci dot edu
2005-09-26 19:25 ` [Bug c/24068] " dann at godzilla dot ics dot uci dot edu
2005-09-26 19:25 ` dann at godzilla dot ics dot uci dot edu
2005-09-26 19:29 ` [Bug c/24068] Unconditional warning when using -combine pinskia at gcc dot gnu dot org
2005-09-26 19:31 ` pinskia at gcc dot gnu dot org
2005-09-26 19:41 ` pinskia at gcc dot gnu dot org
2005-09-26 19:47 ` pinskia at gcc dot gnu dot org
2005-09-26 19:54 ` dann at godzilla dot ics dot uci dot edu
2005-09-26 19:59 ` pinskia at gcc dot gnu dot org
2005-09-26 20:46 ` dann at godzilla dot ics dot uci dot edu
2005-09-29 18:58 ` drow at false dot org
2005-09-29 20:10 ` dann at godzilla dot ics dot uci dot edu
     [not found] <bug-24068-1008@http.gcc.gnu.org/bugzilla/>
2007-11-12 20:43 ` tromey at gcc dot gnu dot org
2010-09-17  9:08 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).