Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#1845 closed defect (fixed)

Compiler warnings with gcc 4.x on maporaclespatial.c

Reported by: maris.gis@… Owned by: fsimon@…
Priority: low Milestone: 5.0 release
Component: Input - Native Oracle Spatial Support Version: 4.6
Severity: minor Keywords:
Cc:

Description (last modified by dmorissette)

OS: 32bit Linux (Kubuntu)
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
mapserver 4.6.1

all warnings come from "strcpy( last_oci_call_ms_error, "message_text" );"

maporaclespatial.c: In function ‘TRY’:
maporaclespatial.c:285: warning: pointer targets in passing argument 1 of
‘strcpy’ differ in signedness
maporaclespatial.c:288: warning: pointer targets in passing argument 1 of
‘strcpy’ differ in signedness
maporaclespatial.c:291: warning: pointer targets in passing argument 1 of
‘strcpy’ differ in signedness
maporaclespatial.c:294: warning: pointer targets in passing argument 1 of
‘strcpy’ differ in signedness
maporaclespatial.c: In function ‘ERROR’:
maporaclespatial.c:313: warning: pointer targets in passing argument 2 of
‘msSetError’ differ in signedness
maporaclespatial.c: In function ‘msOCISetHandlers’:
maporaclespatial.c:572: warning: pointer targets in passing argument 4 of
‘OCILogon’ differ in signedness
maporaclespatial.c:572: warning: pointer targets in passing argument 6 of
‘OCILogon’ differ in signedness
maporaclespatial.c:572: warning: pointer targets in passing argument 8 of
‘OCILogon’ differ in signedness
maporaclespatial.c: In function ‘msOCIConvertCircle’:
maporaclespatial.c:878: warning: pointer targets in passing argument 1 of
‘strcpy’ differ in signedness
maporaclespatial.c: In function ‘msOracleSpatialLayerNextShape’:
maporaclespatial.c:1823: warning: pointer targets in passing argument 1 of
‘atol’ differ in signedness
maporaclespatial.c:1835: warning: pointer targets in passing argument 1 of
‘strlen’ differ in signedness
maporaclespatial.c:1843: warning: pointer targets in passing argument 2 of
‘strcpy’ differ in signedness
maporaclespatial.c:1844: warning: pointer targets in passing argument 1 of
‘strlen’ differ in signedness
maporaclespatial.c: In function ‘msOracleSpatialLayerGetShape’:
maporaclespatial.c:2126: warning: pointer targets in passing argument 1 of
‘strlen’ differ in signedness
maporaclespatial.c:2135: warning: pointer targets in passing argument 2 of
‘strcpy’ differ in signedness
maporaclespatial.c:2136: warning: pointer targets in passing argument 1 of
‘strlen’ differ in signedness
maporaclespatial.c: In function ‘msOracleSpatialLayerGetExtent’:
maporaclespatial.c:2302: warning: pointer targets in passing argument 1 of
‘strlen’ differ in signedness
maporaclespatial.c:2311: warning: pointer targets in passing argument 2 of
‘strcpy’ differ in signedness
maporaclespatial.c:2312: warning: pointer targets in passing argument 1 of
‘strlen’ differ in signedness

Change History (2)

comment:1 by fsimon, 17 years ago

Resolution: fixed
Status: newclosed

I committed the code with the fix in the SVN this afternoon. The revision is 6435. If the problem persist you can reopen the bug. Best regards.

comment:2 by dmorissette, 17 years ago

Description: modified (diff)
Milestone: 5.0 release
Note: See TracTickets for help on using tickets.