]> jfr.im git - irc/rakaur/praxis.git/commitdiff
Fixes from clang warnings. master
authorEric Will <redacted>
Wed, 11 May 2011 14:35:20 +0000 (10:35 -0400)
committerEric Will <redacted>
Wed, 11 May 2011 14:35:20 +0000 (10:35 -0400)
modules/Makefile.in
modules/static_modules.sh [changed mode: 0755->0644]
src/Makefile.in
src/core/balloc.c
src/core/config.c
src/core/event.c

index d5653b3d7387705eda6dc88fa6aff0033677936a..dacaba5dfab307d1ef47a62b29deae860358279f 100644 (file)
@@ -19,7 +19,7 @@ MKDEP         = @CC@ -MM -I../include
 #CFLAGS                = -g -O2 -Wall
 
 # Developer CFLAGS
-CFLAGS         = -g -O0 -Wunused -Wall -ggdb -pedantic -Wshadow -Wmissing-declarations -Wno-long-long
+CFLAGS         = -g -O0 -Wunused -Wall -ggdb -std=gnu99 -pedantic -Wshadow -Wmissing-declarations -Wno-long-long
 
 CFLAGS         = @MY_CFLAGS@ -I../include
 
old mode 100755 (executable)
new mode 100644 (file)
index 06baa26801e1d64423d804b68f98b94d047dfaf6..c296164868c0b0b8cf5d7a8de9b8920142bc7328 100644 (file)
@@ -20,7 +20,7 @@ MKDEP         = @CC@ -MM -I../include -DPREFIX=\"@prefix@\"
 #CFLAGS                = -g -O2 -Wall
 
 # Developer CFLAGS
-CFLAGS         = -g -O0 -Wunused -Wall -ggdb -pedantic -Wshadow -Wmissing-declarations -Wno-long-long
+CFLAGS         = -g -O0 -Wunused -Wall -ggdb -std=gnu99 -pedantic -Wshadow -Wmissing-declarations -Wno-long-long
 
 CFLAGS         += -I../include -DPREFIX=\"@prefix@\"
 
index 8f957c4256d87385e9435ac518b05d2d987eeba5..28168fd22d0e38c8f4f1d87b5c8927b7e4eecfaa 100644 (file)
@@ -375,7 +375,7 @@ ballocHeapGarbage(Heap *heap_p)
 
     while (walker != NULL)
     {
-        if ((dlinkLength(&walker->free_list) == heap_p->elems_per_block))
+        if (dlinkLength(&walker->free_list) == heap_p->elems_per_block)
         {
             ballocFree(walker->elems, walker->alloc_size);
 
index 169e30dbcbea445a3023e853111548551a8442fa..0918334d995fb4850e6e3502d3eed2a7f6ebb8e3 100644 (file)
@@ -678,8 +678,6 @@ c_us_max_users(ConfigEntry *ce)
 static uchar
 c_us_default_flags(ConfigEntry *ce)
 {
-    ConfigEntry *flce;
-
     if (userserv.enabled == 0)
         return 1;
 
@@ -813,8 +811,6 @@ c_cs_part_chans(ConfigEntry *ce)
 static uchar
 c_cs_default_flags(ConfigEntry *ce)
 {
-    ConfigEntry *flce;
-
     if (chanserv.enabled == 0)
         return 1;
 
index 078e2d54cd8a994f28d35db874bb72428221e7fa..aeb48ff9e737ee470fc24863c23f9245f07934a9 100644 (file)
@@ -52,7 +52,7 @@ eventAdd(uint event, uchar (*func) ())
 
     ilog(L_DEBUG2, "eventAdd(): Registering function for event: %d", event);
 
-    dlinkAddTailAlloc(func, &event_table[event].func_list);
+    dlinkAddTailAlloc((void *)func, &event_table[event].func_list);
 }
 
 /* eventAddSpecial()
@@ -113,7 +113,7 @@ eventDelete(uint event, uchar (*func) ())
     ilog(L_DEBUG2, "eventDelete(): Unregistering function for event: %d",
          event);
 
-    ret = dlinkFindDestroy(func, &event_table[event].func_list);
+    ret = dlinkFindDestroy((void *)func, &event_table[event].func_list);
 
     if (ret == 0)
     {
@@ -246,7 +246,7 @@ eventRun(void)
         /* If there are function list entries, call them. */
         DLINK_FOREACH(node2_p, event_table[eventq_p->event].func_list.head)
         {
-            func = node2_p->data;
+            func = (uchar (*) ())node2_p->data;
 
             if (terminated == 1)
                 break;