mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add explicit casts to silence compiler warnings
clang complais when converting (char *) to (unsigned char *), so tell it it's fine. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e3215123d1
commit
22bfc4936f
6 changed files with 18 additions and 18 deletions
|
@ -409,7 +409,7 @@ static uint32_t calculate_diveid(const unsigned char *fingerprint, unsigned int
|
|||
#ifdef DC_FIELD_STRING
|
||||
static uint32_t calculate_string_hash(const char *str)
|
||||
{
|
||||
return calculate_diveid(str, strlen(str));
|
||||
return calculate_diveid((const unsigned char *)str, strlen(str));
|
||||
}
|
||||
|
||||
static void parse_string_field(struct dive *dive, dc_field_string_t *str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue