🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #87

gcc-2.3.1: improper warning with const pointer passing ?

#87
From: Peter Schauer
Date: Wed, 04 Nov 1992 10:38
12 lines
921 bytes
/* The following piece of code produces
 * warning: passing arg 1 of `x' from incompatible pointer type
 * which is not true in my opinion.
 * If g++ is used, no warning is issued.
 * Peter Schauer                        pes@regent.e-technik.tu-muenchen.de
 */
void x(const char **a);
void y(void)
{
        char **p = 0;
        x(p);
}
Technical Details
Message-ID: <92Nov4.093905met.20493@rebus.regent.e-technik.tu-muenchen.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!regent.e-technik.tu-muenchen.dbp.DE!Peter.Schauer

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!regent.e-technik.tu-muenchen.dbp.DE!Peter.Schauer
From: Peter.Schauer@regent.e-technik.tu-muenchen.dbp.DE (Peter Schauer)
Newsgroups: gnu.gcc.bug
Subject: gcc-2.3.1: improper warning with const pointer passing ?
Message-ID: <92Nov4.093905met.20493@rebus.regent.e-technik.tu-muenchen.de>
Date: 4 Nov 92 10:38:53 GMT
Article-I.D.: rebus.92Nov4.093905met.20493
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 12
Approved: bug-gcc@prep.ai.mit.edu