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".
This commit is contained in:
parent
aabbe6a3bb
commit
ce1f7a16ab
|
@ -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);
|
const char *hvalue = header_retrieve_callback("User-Agent", header_retrieve_callback_data);
|
||||||
// and on a non existing one
|
// and on a non existing one
|
||||||
hvalue = header_retrieve_callback("Non-Existing-Header", header_retrieve_callback_data);
|
hvalue = header_retrieve_callback("Non-Existing-Header", header_retrieve_callback_data);
|
||||||
|
(void)hvalue;
|
||||||
return (void *) 0xdeffa;
|
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)
|
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)
|
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)
|
int wurfl_device_is_actual_device_root(wurfl_device_handle hwurfldevice)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue