compilation warnings in C test cases

Bug #1132247 reported by Galen Charlton on 2013-02-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenSRF
Status tracked in Master
2.1
Medium
Unassigned
Master
Medium
Unassigned

Bug Description

Running make check reveals a bunch of compilation warnings in the C test cases:

check_osrf_list.c: In function ‘setup’:
check_osrf_list.c:24:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:26:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c: In function ‘test_osrf_list_osrfListPush’:
check_osrf_list.c:62:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:66:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c: In function ‘test_osrf_list_osrfListPushFirst’:
check_osrf_list.c:74:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:76:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c: In function ‘test_osrf_list_osrfListSet’:
check_osrf_list.c:87:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:89:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:97:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:100:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:111:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:114:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:123:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:131:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c: In function ‘test_osrf_list_osrfListFree’:
check_osrf_list.c:151:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:152:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c: In function ‘test_osrf_list_osrfListClear’:
check_osrf_list.c:165:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:166:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c: In function ‘test_osrf_list_osrfListSwap’:
check_osrf_list.c:184:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c:185:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
check_osrf_list.c: In function ‘test_osrf_list_osrfListPop’:
check_osrf_list.c:289:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

check_osrf_message.c: In function ‘test_osrf_message_set_locale’:
check_osrf_message.c:34:13: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]

OpenSRF: master

Galen Charlton (gmc) wrote :

Patch available in the user/gmcharlt/lp1132247_fix_compilation_warnings_in_c_test_cases branch in working/OpenSRF:

http://git.evergreen-ils.org/?p=working/OpenSRF.git;a=shortlog;h=refs/heads/user/gmcharlt/lp1132247_fix_compilation_warnings_in_c_test_cases

tags: added: pullrequest
Ben Shum (bshum) wrote :

Resolved the errors for me. Picked to master.

Changed in opensrf:
milestone: none → 2.1.3
status: New → Fix Committed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers