Skip to content

Commit

Permalink
Remove the 'register' keywork from hashCStringXorDJB
Browse files Browse the repository at this point in the history
gcc complains about this as C++17 and later have removed/deprecated/etc
it:
/home/david/Development/altrace/altrace_wx.cpp:65:21: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  • Loading branch information
sulix authored and icculus committed Aug 31, 2021
1 parent 25aafcf commit dd572d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion altrace_wx.cpp
Expand Up @@ -62,7 +62,7 @@ void out_of_memory(void)
static inline uint32 hashCStringXorDJB(const char *str)
{
size_t len = strlen(str);
register uint32 hash = 5381;
uint32 hash = 5381;
while (len--)
hash = ((hash << 5) + hash) ^ *(str++);
return hash;
Expand Down

0 comments on commit dd572d9

Please sign in to comment.