Article View: gnu.gcc.bug
Article #2327Missing warning in GCC 1.33 - returned incomplete type
From: Ron Guilmette
Date: Mon, 20 Feb 1989 00:45
Date: Mon, 20 Feb 1989 00:45
18 lines
1084 bytes
1084 bytes
It seems that GCC will warn you if you declare a function which
takes an argument which is a pointer to an incomplete type, but
not if you declare a function which *returns* a pointer to an
incomplete type, i.e.
struct incomplete;
int gimme_warning (struct incomplete *); /* gives warning */
struct incomplete *strange_return (void); /* no warning */
It seems to me that the same thing should happen in either case.
// Ron Guilmette - MCC - Experimental (parallel) Systems Kit Project
// 3500 West Balcones Center Drive, Austin, TX 78759 - (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg
Technical Details
Message-ID:
<8902200045.AA08681@riunite.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.gcc.bug Subject: Missing warning in GCC 1.33 - returned incomplete type Message-ID: <8902200045.AA08681@riunite.aca.mcc.com> Date: 20 Feb 89 00:45:09 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 18