This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]