Skip to content

Fix compilation warnings in Move.cpp

Joshua Houghton requested to merge jjhoughton/ksokoban:master into master

These where the compilation warnings

/home/joshua/development/ksokoban/Move.cpp: In member function ‘const char* Move::load(const char*)’:
/home/joshua/development/ksokoban/Move.cpp:134:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
  134 |       last = true;
      |       ~~~~~^~~~~~
/home/joshua/development/ksokoban/Move.cpp:135:5: note: here
  135 |     case 'l':
      |     ^~~~
/home/joshua/development/ksokoban/Move.cpp:139:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
  139 |       last = true;
      |       ~~~~~^~~~~~
/home/joshua/development/ksokoban/Move.cpp:140:5: note: here
  140 |     case 'r':
      |     ^~~~
/home/joshua/development/ksokoban/Move.cpp:144:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
  144 |       last = true;
      |       ~~~~~^~~~~~
/home/joshua/development/ksokoban/Move.cpp:145:5: note: here
  145 |     case 'u':
      |     ^~~~
/home/joshua/development/ksokoban/Move.cpp:149:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
  149 |       last = true;
      |       ~~~~~^~~~~~
/home/joshua/development/ksokoban/Move.cpp:150:5: note: here
  150 |     case 'd':
      |     ^~~~
Edited by Joshua Houghton

Merge request reports