Enable compile warnings
Remove unused variables
Remove memory check condition. In C++ this would raise an exception.
Use variables close to where they are used.
Balanced whitespace in menu_entry dump