GCC4 warning: control may reach end of non-void
PATCH 1/1 GCC4 warning: control may reach end of non-void
Signed-off-by Jesse Millan <[email protected]>
GCC complains because the function put_compat_shminfo() can't get to its return statement if there is no error... If the function does not return -EFALUT, it doesn't return anything at all. Looks like a typo.
---
ipc/compat.c renamed from ipc/compat.c~compat-patch +1 -0
@@ -572,6 +572,7 @@ static inline int put_compat_shminfo(str err |=__put_user (smi->shmmni, &up->shmmni); err |=__put_user (smi->shmseg, &up->shmseg); err |=__put_user (smi->shmall, &up->shmall); +return err; } static inline int put_compat_shm_info(struct shm_info __user *ip,
_
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors