This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Warning elimination patch in sched.c
- To: Bjorn dot Wennberg at lcc dot no, egcs at cygnus dot com
- Subject: RE: Warning elimination patch in sched.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 10 Mar 1998 09:56:33 -0500 (EST)
> > From: Bjxrn Wennberg <Bjorn.Wennberg@lcc.no>
> >
> > This might be the correct solution to the problem but I'm curios to why
> > the warnings are reported from gcc.
> > If I create a small file containing:
> > -----
> > static int function(int *, int *);
> > int main() {
> > qsort(0, 0, 0, function);
> > }
> > ------
> From: Bjørn Wennberg <Bjorn.Wennberg@lcc.no>
>
> I did include the appropriate include-files to get the correct
> definition of qsort. That
> is why I find the warning messages strange.
>
> bjornw>
Hmm, your posting of the code fragment didn't indicate stdlib.h
was included. Its hard to figure out what's going on with incomplete
information.
Perhaps if you posted the output from "gcc -v", the exact source
code, and the exact flags you passed to gcc to compile the program, it
would help. Also run the compilation with -save-temps and send the .i
file. This will let me see the prototype for qsort on your platform.
--Kaveh
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu ICon CMT Corp.