Operating System - HP-UX
1753596 Members
6604 Online
108796 Solutions
New Discussion

warning 827 with lint on HP-UX 10.10

 
John Wright
Occasional Contributor

warning 827 with lint on HP-UX 10.10

When using lint -Ae -x I get warning 827 hundreds of times for every unused item in the header files, ie. the x argument is ignored. This occurs when I declare a static int outside of a function but not with a (global) int or with a static int within a function.
I have patch PHSS_17507 on s700. Does anyone know a workround or patch?

Thanks

John Wright

 

 

 

P.S.This thread has been moved from  HP-UX > General to HP-UX > languages -HP Forums Moderator

1 REPLY 1
Berlene Herren
Honored Contributor

Re: warning 827 with lint on HP-UX 10.10

All the warning appear to be suppressed when -A is passed to lint.
But the real problem is -A and the following argument are concatenated and passed to C compiler driver. This results in an error because, cc expects -Aa or -Ac, not -Afoo.c.

This was fixed in 10.20.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm