Compiler warning in osrf_utf8.c
Bug #954059 reported by
Jason Stephenson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenSRF |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Compiling osrf_utf8.c generates the following warning:
osrf_utf8.c:510:29: warning: utf8_char may be used uninitialized in this function [-Wuninitialized]
Changed in opensrf: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Also, using clang as the compiler results in 4 warnings like the following:
osrf_list.c:106:23: warning: comparison of unsigned expression < 0 is always false [-Wtautological -compare]
~ ~~~~~~~ ^ ~
if(!list || position < 0) return NULL;
(Explanation: "position" is an unsigned int; thus the comparison to < 0 can never evaluate to true).