GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gmake warning: subscript has type `char' in sh...
Operating System - HP-UX
1854671
Members
2538
Online
104102
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
back
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
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
10-05-2004 09:51 PM
10-05-2004 09:51 PM
gmake warning: subscript has type `char' in shc
Dear all,
I have compilation problem at hpux 11.0 gcc-3.4.2
/sauve/SHC/GNU64/pa20_64/bin/gcc -Wall -O6 -pedantic shc.c -o shc
shc.c: In function `noise':
shc.c:742: warning: subscript has type `char'
Any idea . Thanks in advance.
Martin
I have compilation problem at hpux 11.0 gcc-3.4.2
/sauve/SHC/GNU64/pa20_64/bin/gcc -Wall -O6 -pedantic shc.c -o shc
shc.c: In function `noise':
shc.c:742: warning: subscript has type `char'
Any idea . Thanks in advance.
Martin
mmabika
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 10:02 PM
10-05-2004 10:02 PM
Re: gmake warning: subscript has type `char' in shc
what is there in shc.c files 742??
sed -n 745,750p shc.c
It will be helpful to identify cause for warning there.
sed -n 745,750p shc.c
It will be helpful to identify cause for warning there.
Easy to suggest when don't know about the problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2004 01:08 AM
10-07-2004 01:08 AM
Re: gmake warning: subscript has type `char' in shc
742 is line number as defined here:
735 int noise(char * ptr, unsigned min, unsigned xtra, int str)
736 {
737 if (xtra) xtra = rand() % xtra;
738 xtra += min;
739 for (min = 0; min < xtra; min++, ptr++)
740 do
741 *ptr = (char) rand();
742 while (str && !isalnum(*ptr));
743 if (str) *ptr = '\0';
744 return xtra;
745 }
Is any one has already compiled shc in hp 11.0 plateforme ? I have got a corresponding depot file but it is not worked
Thanks in advance.
Martin
735 int noise(char * ptr, unsigned min, unsigned xtra, int str)
736 {
737 if (xtra) xtra = rand() % xtra;
738 xtra += min;
739 for (min = 0; min < xtra; min++, ptr++)
740 do
741 *ptr = (char) rand();
742 while (str && !isalnum(*ptr));
743 if (str) *ptr = '\0';
744 return xtra;
745 }
Is any one has already compiled shc in hp 11.0 plateforme ? I have got a corresponding depot file but it is not worked
Thanks in advance.
Martin
mmabika
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 2026 Hewlett Packard Enterprise Development LP