]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP#1243841 - Quiet additional Make warnings and some code cleanup.
authorJason Stephenson <jason@sigio.com>
Tue, 7 Nov 2017 20:58:05 +0000 (15:58 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 7 May 2018 19:55:48 +0000 (15:55 -0400)
commitf47f108e7a2af04360c872313978be6ce71c5c25
tree9afec0d8391c9375902b77c31bd2e73326ab3aa8
parent9dd65c72e5bd114eb1e1d6c2b1388e01df02bbb8
LP#1243841 - Quiet additional Make warnings and some code cleanup.

We make the following warnings go away:

osrf_legacy_json.c:607:6: warning: variable ‘fourth_dash’ set but
not used [-Wunused-but-set-variable]

osrf_legacy_json.c:836:5: warning: passing argument 3 of ‘makeNode’
discards ‘const’ qualifier from pointer target type [enabled by
default]

utils.c:133:2: warning: format not a string literal and no format
arguments [-Wformat-security]

We also cleanup the while block nested in a do while block around line
63 of osrf_cache.c to be more readable by adding braces and breaking
it across 3 lines.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
src/libopensrf/osrf_cache.c
src/libopensrf/osrf_legacy_json.c
src/libopensrf/utils.c