HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Addition of pointers and int
Operating System - HP-UX
1828859
Members
2568
Online
109985
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2003 06:32 AM
05-20-2003 06:32 AM
Addition of pointers and int
Hi,
While adding the char * variable with the integer variable i am getting following warning in HP-UX 11i
LP64 migration warning 733: + between pointer and 32 bit integer
But i am not getting it in HP-UX11.0
please clarify
Regards
Balaji
While adding the char * variable with the integer variable i am getting following warning in HP-UX 11i
LP64 migration warning 733: + between pointer and 32 bit integer
But i am not getting it in HP-UX11.0
please clarify
Regards
Balaji
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2003 06:42 AM
05-20-2003 06:42 AM
Re: Addition of pointers and int
Well, different versions of compiler do different things but a more important point is why you would not want to warned about such a very questionable construct? You always have the option od adding the +W733 flag to the compiuler to suppress the warning.
This kind of operation almost always leads to non-portable code and that is what you are being warned about. You could (and should always have been) using a cast to tell the compiler that you really want to do this and then the warning should be suppressed.
This kind of operation almost always leads to non-portable code and that is what you are being warned about. You could (and should always have been) using a cast to tell the compiler that you really want to do this and then the warning should be suppressed.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2012 01:47 AM
05-28-2012 01:47 AM
Re: Addition of pointers and int
>LP64 migration warning 733: + between pointer and 32 bit integer
There should be nothing wrong to add a 32 bit int (or even smaller) to a pointer. The problem would occur if you are trying to store the result in a 32 bit integer.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP