Browse Source

Fix extra warnings

Serj Kalichev 10 years ago
parent
commit
da82bfb3ac
3 changed files with 4 additions and 3 deletions
  1. 1 0
      birq.c
  2. 2 2
      lub/list/list.c
  3. 1 1
      pxm.c

+ 1 - 0
birq.c

@@ -238,6 +238,7 @@ err:
 static void sighandler(int signo)
 {
 	sigterm = 1;
+	signo = signo; /* Happy compiler */
 }
 
 /*--------------------------------------------------------- */

+ 2 - 2
lub/list/list.c

@@ -27,7 +27,7 @@ lub_list_t *lub_list_new(lub_list_compare_fn compareFn)
 }
 
 /*--------------------------------------------------------- */
-void inline lub_list_free(lub_list_t *this)
+inline void lub_list_free(lub_list_t *this)
 {
 	free(this);
 }
@@ -95,7 +95,7 @@ inline lub_list_node_t *lub_list_iterator_prev(lub_list_node_t *this)
 }
 
 /*--------------------------------------------------------- */
-void inline lub_list_node_free(lub_list_node_t *this)
+inline void lub_list_node_free(lub_list_node_t *this)
 {
 	free(this);
 }

+ 1 - 1
pxm.c

@@ -83,7 +83,7 @@ int show_pxms(lub_list_t *pxms)
 int pxm_search(lub_list_t *pxms, const char *addr, cpumask_t *cpumask)
 {
 	lub_list_node_t *iter;
-	int maxaddr = 0;
+	size_t maxaddr = 0;
 
 	for (iter = lub_list_iterator_init(pxms); iter;
 		iter = lub_list_iterator_next(iter)) {