Operating System - HP-UX
1748238 Members
3703 Online
108759 Solutions
New Discussion юеВ

LP64 WARNING IS GETTING SUPPRESSED

 
BALAJI CHANDRAN
Occasional Contributor

LP64 WARNING IS GETTING SUPPRESSED

When i am compiling the .c file in CBSIHP01 or CBSIHP02 with +M2 and +DD64 options enabled I am getting Warnings as below

cc: "stubstr.c", line 8: warning 720: LP64 migration: Assignment may overflow integer "len".

When i am compiling the .c file in CVNSHP03 with +M2 and +DD64 options enabled I am getting Warnings as below

cc: "stubstr.c", line 8: warning 720:Assignment may overflow integer "len"


..But we want LP64 migration MESSAGE in CVNSHP03 also........

I have enclosed the Hardware model of CBSIHP01, CBSIHP02 and CVNSHP03.
CBSIHP01: 9000/782/J2240
CBSIHP02: 9000/861/D270
CVNSHP03: 9000/800/L3000-7x

Can anyone provide solution for this?

Thanks
C.Balaji



3 REPLIES 3
Nicolas Portais
Frequent Advisor

Re: LP64 WARNING IS GETTING SUPPRESSED

Hi,

Generally, this error appears when you compare (or assign) a long variable to a integer.

for example:

$ cat test.c
void main(void)
{
int a;
long b=1L;
a=b;
}

$ cc +M2 +DD64 test.c -o test
cc: "test.c", line 5: LP64 migration warning 720: Assignment may overflow integer "a".

the solution is to replace 'int' by 'long'.

Regards,
Nicolas
A. Clay Stephenson
Acclaimed Contributor

Re: LP64 WARNING IS GETTING SUPPRESSED

Do a cc -V myfile.c and make sure that all the compilers are at the same revision level. Next check to see if compiler patches are equivalent.
If it ain't broke, I can fix that.
Srinivasan S_1
Advisor

Re: LP64 WARNING IS GETTING SUPPRESSED

NLSPATH=/opt/ansic/lib/nls/msg/C/%N.cat

You have to set /opt/ansic/lib/nls/msg/C/%N.cat catalogue path of system ( C Compiler Catalog message path). then you will get that message.

Thanks
Srinivasan S