]> 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 20:09:57 +0000 (16:09 -0400)
commit35c7bb1b81bd41d99ad0a0756bf669a13e6ef63b
tree02df4ff8da695216301fc5d3f2d5f707078be4a7
parent4dadb76c5b7e73615de4a1ff923aa46b77b95330
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