This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
warning when bool parameter in function prototype
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 16 Jan 2003 10:04:14 +0100
- Subject: warning when bool parameter in function prototype
Hi,
I have this prototype and function in my rewrite of bb-reorder pass:
static bool copy_bb_p PARAMS ((basic_block, bool));
static bool
copy_bb_p (bb, code_may_grow)
basic_block bb;
bool code_may_grow;
{
...
}
preprocessed to:
static _Bool copy_bb_p (basic_block, _Bool);
static _Bool
copy_bb_p (bb, code_may_grow)
basic_block bb;
_Bool code_may_grow;
{
...
}
Compiler writes a warning
warning: promoted argument `code_may_grow' doesn't match prototype
when bootstraping.
Any ideas why the mainline compiler complains?
(stage1, stage2 and final compiler complains, installed gcc 3.2 too)
Josef