Operating System - HP-UX
1753349 Members
4883 Online
108792 Solutions
New Discussion юеВ

Re: Function Prototype checking on HP-UX 11.31 IA64

 
Nick Kemp
Occasional Contributor

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.
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

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.
Nick Kemp
Occasional Contributor

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?
Dennis Handly
Acclaimed Contributor

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.