Codewarrior header check - look left look right!

Started by johnpititto1976 August 25, 2003
Hi All,

I am developing a MC68HCS12DP256 with Codewarrior v1.2. Is there any
way of forcing Codewarrior to check if each procedure call in a
program has had the correct include file included in the program with
the definition of the procedure. I find that Codewarrior will compile
if the procedure is defined but not nescesarily referenced to via an
include directive? Is there a complier option to check that each
procedure has been referenced correctly via the header file include
directive???

Kind Regards,

John Pititto.



John,
there is the option -Wpd which gives you an error in case you use a
function,
for which you did not had a declaration (e.g. you missed to include the
header file).

Erich

> -----Original Message-----
> From: johnpititto1976 [mailto:]
> Sent: Montag, 25. August 2003 07:54
> To:
> Subject: [68HC12] Codewarrior header check - look left look right! > Hi All,
>
> I am developing a MC68HCS12DP256 with Codewarrior v1.2. Is there any
> way of forcing Codewarrior to check if each procedure call in a
> program has had the correct include file included in the program with
> the definition of the procedure. I find that Codewarrior will compile
> if the procedure is defined but not nescesarily referenced to via an
> include directive? Is there a complier option to check that each
> procedure has been referenced correctly via the header file include
> directive???
>
> Kind Regards,
>
> John Pititto. >
>
> -------------------- >
> ">http://docs.yahoo.com/info/terms/