Skip to contentSkip to conversation

GCC4 warning: no return statement in function

PATCH Superseded Jesse Millan 1 participant 1 message Jul 1, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 GCC4 warning: no return statement in function

The function kauditd_thread() does not return an integer as the declaration says it should. There is no return statement in the body whatsoever and looks like the function should have been declared as returning void.
---

kernel/audit.c renamed from kernel/audit.c~audit-patch +1 -1
diff -puN kernel/audit.c~audit-patch kernel/audit.c
@@ -275,7 +275,7 @@ static int audit_set_failure(int state, 
 	return old;
 }
 
-int kauditd_thread(void *dummy)
+void kauditd_thread(void *dummy)
 {
 	struct sk_buff *skb;
 

_

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors