mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Enabled lots of GCC warnings, fixed those that were easy to fix.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@456 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f8aa81b73c
commit
dcc2e89b2e
25 changed files with 84 additions and 106 deletions
|
|
@ -28,12 +28,12 @@ static int g_istr_equal(gconstpointer v, gconstpointer v2)
|
|||
/* a char* hash function from ASU */
|
||||
static unsigned int g_istr_hash(gconstpointer v)
|
||||
{
|
||||
const char *s = (char *) v;
|
||||
const char *s = (const char *) v;
|
||||
unsigned int h = 0, g;
|
||||
|
||||
while (*s != '\0') {
|
||||
h = (h << 4) + toupper(*s);
|
||||
if ((g = h & 0xf0000000)) {
|
||||
if ((g = h & 0xf0000000UL)) {
|
||||
h = h ^ (g >> 24);
|
||||
h = h ^ g;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue