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

 
 

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

Submitter:  Alexander Frink <afrink>
Submitted:  Thu 23 Mar 2006 12:37:35 PM UTC
   
 
Severity:  3 - Normal Item Group:  Build/Install
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.0 Operating System:  POSIX-Based
Fixed Release:  3.81 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Fixed.  Thanks for the report.

Paul D. Smith <psmith>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-01 psmith Fixed Release4.0 3.81
2006-03-23 psmith StatusNone Fixed
    Assigned toNone psmith
    Open/ClosedOpen Closed
    Fixed ReleaseNone 4.0

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code