Messages in this thread | | | Date | Wed, 8 May 2013 16:34:11 +0200 | From | Borislav Petkov <> | Subject | ipc/shm.c:494:18: warning: unuse d variable ‘hs’ [-Wunused-variable] |
| |
Hi,
looks like this warning came in with af73e4d9506d3b797509f3c030e7dcd554f7d9c4 and fires in the
# CONFIG_HUGETLB_PAGE is not set
case because
struct hstate *hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK);
becomes
struct hstate *hs = ((void *)0)
due to
#define hstate_sizelog(s) NULL
Hmmm, I don't have a quick solution off the top of my head from staring at the code.
-- Regards/Gruss, Boris.
Sent from a fat crate under my desk. Formatting is fine. --
| |