From: Willy Tarreau Date: Wed, 22 May 2019 12:54:27 +0000 (+0200) Subject: CONTRIB: wurfl: address 3 build issues in the wurfl dummy library X-Git-Tag: v2.0-dev4~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce1f7a16abb6ea1652a07fd4412733d225c4d44b;p=thirdparty%2Fhaproxy.git CONTRIB: wurfl: address 3 build issues in the wurfl dummy library Two of them were functions returning an string missing the return statement and one is just the usual "set but not used". --- diff --git a/contrib/wurfl/dummy-wurfl.c b/contrib/wurfl/dummy-wurfl.c index 8c7909d121..0d5f068280 100644 --- a/contrib/wurfl/dummy-wurfl.c +++ b/contrib/wurfl/dummy-wurfl.c @@ -71,7 +71,7 @@ wurfl_device_handle wurfl_lookup(wurfl_handle hwurfl, wurfl_header_retrieve_call const char *hvalue = header_retrieve_callback("User-Agent", header_retrieve_callback_data); // and on a non existing one hvalue = header_retrieve_callback("Non-Existing-Header", header_retrieve_callback_data); - + (void)hvalue; return (void *) 0xdeffa; } @@ -102,11 +102,11 @@ const char *wurfl_device_get_root_id(wurfl_device_handle hwurfldevice) const char *wurfl_device_get_original_useragent(wurfl_device_handle hwurfldevice) { - + return "original_useragent"; } const char *wurfl_device_get_normalized_useragent(wurfl_device_handle hwurfldevice) { - + return "normalized_useragent"; } int wurfl_device_is_actual_device_root(wurfl_device_handle hwurfldevice) {