Advertisement
ZoriaRPG

script_drawing.cpp fallthrough warnings to fix

Dec 16th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.82 KB | None | 0 0
  1.     ^~~~~~~
  2. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp: In function ‘void do_drawbitmapexr(BITMAP*, int*, int, int):
  3. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:2401:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  4.       pivot_sprite_v_flip(bmp, subBmp, dx, dy, cx, cy, degrees_to_fixed(rot));
  5.       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  6. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:2403:6: note: here
  7.       case 8:
  8.       ^~~~
  9. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:2676:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  10.       pivot_sprite_v_flip(bmp, subBmp, dx, dy, cx, cy, degrees_to_fixed(rot));
  11.       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:2678:6: note: here
  13.       case 8:
  14.       ^~~~
  15. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:2952:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  16.       pivot_sprite_v_flip(bmp, subBmp, dx, dy,  cx,  cy, degrees_to_fixed(rot));
  17.       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:2954:6: note: here
  19.       case 8:
  20.       ^~~~
  21. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:3224:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  22.       pivot_sprite_v_flip(bmp, subBmp, dx, dy, cx, cy, degrees_to_fixed(rot));
  23.       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:3226:6: note: here
  25.       case 8:
  26.       ^~~~
  27. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp: In function ‘void bmp_do_drawbitmapexr(BITMAP*, int*, int, int):
  28. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:5316:57: warning: this statement may fall through [-Wimplicit-fallthrough=]
  29.        destBMP = zscriptDrawingRenderTarget->GetBitmapPtr(bitmapIndex);
  30.                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
  31. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:5318:3: note: here
  32.    default: destBMP = FFCore.get_user_bitmap(bitmapIndex);
  33.    ^~~~~~~
  34. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:5419:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  35.       pivot_sprite_v_flip(destBMP, subBmp, dx, dy, cx, cy, degrees_to_fixed(rot));
  36.       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  37. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:5421:6: note: here
  38.       case 8:
  39.       ^~~~
  40. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:5694:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  41.       pivot_sprite_v_flip(destBMP, subBmp, dx, dy, cx, cy, degrees_to_fixed(rot));
  42.       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  43. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:5696:6: note: here
  44.       case 8:
  45.       ^~~~
  46. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:5970:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  47.       pivot_sprite_v_flip(destBMP, subBmp, dx, dy,  cx,  cy, degrees_to_fixed(rot));
  48.       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  49. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:5972:6: note: here
  50.       case 8:
  51.       ^~~~
  52. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:6242:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  53.       pivot_sprite_v_flip(destBMP, subBmp, dx, dy, cx, cy, degrees_to_fixed(rot));
  54.       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55. /home/peter/Projects/ZeldaClassic/src/script_drawing.cpp:6244:6: note: here
  56.       case 8:
  57.       ^~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement