What does this warning mean?

Peter Simons peter.simons@gmd.de
Sat Aug 22 13:32:00 GMT 1998


-----BEGIN PGP SIGNED MESSAGE-----

My egcs warns me and I don't have the slightest idea what he's
complaining about. I am compiling a C++ class which models regular
expressions in C++. When compiling with "-Wall -ansi -pedantic -O2", I
get the following warnings:

 | RegExp.hpp:74: warning: default argument given for parameter 3 of `
 |         bool RegExec(const class string &, const class RegExp &, 
 |         struct regmatch_t * = 0, size_t = 0, int = 0)'
 | RegExp.hpp:70: warning: after previous specification in `
 |         bool RegExec(const class string &, const class RegExp &, 
 |         struct regmatch_t * = 0, size_t = 0, int = 0)'
 | RegExp.hpp:74: warning: default argument given for parameter 4 of `
 |         bool RegExec(const class string &, const class RegExp &, 
 |         struct regmatch_t * = 0, size_t = 0, int = 0)'
 | RegExp.hpp:70: warning: after previous specification in `
 |         bool RegExec(const class string &, const class RegExp &, 
 |         struct regmatch_t * = 0, size_t = 0, int = 0)'
 | RegExp.hpp:74: warning: default argument given for parameter 5 of `
 |         bool RegExec(const class string &, const class RegExp &, 
 |         struct regmatch_t * = 0, size_t = 0, int = 0)'

Can anyone explain me what egcs is complaining about? This warning
occurs only when compiling with -O2. Normal "-Wall -ansi -pedantic"
doesn't give this warning.

I am using egcs-2.92.00 if that matters. I can also provide the exact
files that produce this here on NetBSD/i386 1.3.

Any help is appreciated.

	-peter

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1

iQCVAwUBNd8eaw9HL1s0103BAQFYiAP/WP0S1CrwuLc8vwBVxBQMJwazU9/TLNBo
A67UCLtyQF1LUrTPstsaHCe/WlL3Lo5/p0KLZVl5IRkhE8iJ26+8wCI2Er9C0jUP
zdf0Hw4BsivOZWiAKxJuVJjmQsfnoI3NgI77H916PV1fUYtteCAONbZlibhefS9X
MBa6Zvkm2AI=
=4fwR
-----END PGP SIGNATURE-----



More information about the Gcc mailing list