Function Prototype checking on HP-UX 11.31 IA64 (75 Views)
Reply
Occasional Contributor
Nick Kemp
Posts: 5
Registered: ‎09-21-2008
Message 1 of 4 (75 Views)

Function Prototype checking on HP-UX 11.31 IA64

I am porting a complete system from PA-RISC to an IA64 platform using the HP Ansi C compiler. Is there an option to the compiler to report functions that have not been prototyped. The +w option produces this as a remark, but also with a load of other remarks about structure padding. Really the missing prototype would be presented as an warning, There is a similar option available with GCC, but can not find any similar option with the ANSI-C compiler.
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,854
Registered: ‎03-06-2006
Message 2 of 4 (75 Views)

Re: Function Prototype checking on HP-UX 11.31 IA64

Turn on +w and find out the message numbers.
Then use +We#### to make it a fatal error.
Use +Ww#### to make it a warning.
What version to you have? The latest is A.06.20.
Please use plain text.
Occasional Contributor
Nick Kemp
Posts: 5
Registered: ‎09-21-2008
Message 3 of 4 (75 Views)

Re: Function Prototype checking on HP-UX 11.31 IA64

Thanks that works a real treat.

I have

B9007AA C.11.31.03 HP C/aC++ Developer's Bundle installed
and that has
cc: HP C/aC++ B3910B A.06.15 [May 16 2007] within it.

Should I be updating the compiler?
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,854
Registered: ‎03-06-2006
Message 4 of 4 (75 Views)

Re: Function Prototype checking on HP-UX 11.31 IA64

>Should I be updating the compiler?

You can patch up to A.06.17, PHSS_37950. If you have a support contract, you can get A.06.20, shortly.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation