bugmake - Bugs: bug #16170, make 3.81rc2: compile warnings on...

 
 

bug #16170: make 3.81rc2: compile warnings on AIX

Submitted by:  Alexander Frink <afrink>
Submitted on:  Thu 23 Mar 2006 12:37:35 PM UTC  
 
Severity: 3 - NormalItem Group: Build/Install
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 4.0Operating System: POSIX-Based
Fixed Release: 3.81Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 23 Mar 2006 01:48:49 PM UTC, comment #1:

Fixed. Thanks for the report.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Thu 23 Mar 2006 12:37:35 PM UTC, original submission:

The following compile warnings on AIX 5.3 with the C for AIX Compiler, Version 6, should (hopefully) be easy to fix:

"function.c", line 1751.34: 1506-280 (W) Function argument assignment between types "int" and "unsigned int" is not allowed.

void fold_newlines (char buffer, int length) is called in line 1751 in func_shell() with fold_newlines (buffer, &i); where i is an unsigned int (this has been changed since 3.80). In the #ifdef _AMIGA part it is still called with an int. This there probably was a good reason to switch from int to unsigned int, it should be done everywhere.

"misc.c", line 667.15: 1506-280 (W) Function argument assignment between types "unsigned char" and "const unsigned char" is not allowed.
"misc.c", line 746.15: 1506-280 (W) Function argument assignment between types "unsigned char" and "const unsigned char" is not allowed.
"misc.c", line 794.15: 1506-280 (W) Function argument assignment between types "unsigned char" and "const unsigned char" is not allowed.
"misc.c", line 828.15: 1506-280 (W) Function argument assignment between types "unsigned char" and "const unsigned char" is not allowed.

_() expands to (const char)() on AIX. Therefore static void log_access (char flavor) should be replaced by static void log_access (const char *flavor).

Alexander Frink <afrink>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 01 Apr 2006 07:21:23 AM UTCpsmithFixed Release4.0=>3.81
Thu 23 Mar 2006 01:48:49 PM UTCpsmithStatusNone=>Fixed
  Assigned toNone=>psmith
  Open/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.0

Back to the top


Powered by Savane 3.1-cleanup1