Commit 0831d9a0 authored by Olaf Bergmann's avatar Olaf Bergmann Committed by Arthur O'Dwyer
Browse files

uthash.h: fix compiler warning -Wcast-qual

The macro HASH_ADD_KEYPTR_BYHASHVALUE casts keyptr to (char *) hence
violating const keys. As the key is used read-only, the UT_hash_handle
structure can be changed to const void *key, allowing the cast to
(const void *) instead.

This fixes compiler warnings emitted when -Wcast-qual is specified.
parent ba2fbfdc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment