Attempt to fix a clang warning
fix some simple warnings
Fix warning about missing break in switch
Add a new private attribute