Advertisement
ZoriaRPG

ffscript.cpp fallthrough warnings to fix

Dec 16th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 19.90 KB | None | 0 0
  1. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp: In function ‘long int get_register(long int):
  2. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:2056:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
  3.          }
  4.          ^
  5. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:2062:5: note: here
  6.      case IDATAUSEWPN:
  7.      ^~~~
  8. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:2790:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
  9.    }
  10.    ^
  11. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:2793:2: note: here
  12.   case NPCFROZENTILE:
  13.   ^~~~
  14. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4725:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
  15.      }
  16.      ^
  17. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4730:1: note: here
  18.  case MAPDATAFFHEIGHT:
  19.  ^~~~
  20. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4749:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
  21.      }
  22.      ^
  23. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4756:1: note: here
  24.  case MAPDATAFFEFFECTWIDTH:
  25.  ^~~~
  26. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4775:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
  27.      }
  28.      ^
  29. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4780:1: note: here
  30.  case MAPDATAFFEFFECTHEIGHT:
  31.  ^~~~
  32. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4800:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
  33.      }
  34.      ^
  35. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4805:1: note: here
  36.  case MAPDATAFFLINK:         GET_MAPDATA_FFC_INDEX32(fflink, "FFCLink", 31); break;  //B, 32 OF THESE
  37.  ^~~~
  38. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4881:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  39.   }
  40.   ^
  41. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:4885:1: note: here
  42.  case MAPDATAFFINITIALISED:  GET_MAPDATA_BOOL_INDEX(initialized, "FFCRunning", 31); break; //BOOL, 32 OF THESE
  43.  ^~~~
  44. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5166:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  45.   }
  46.   ^
  47. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5168:1: note: here
  48.  case DMAPDATAMINIMAPTILE: //word - two of these, so let's do MinimapTile[2]
  49.  ^~~~
  50. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5181:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  51.   }
  52.   ^
  53. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5183:1: note: here
  54.  case DMAPDATAMINIMAPCSET: //byte - two of these, so let's do MinimapCSet[2]
  55.  ^~~~
  56. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5196:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  57.   }
  58.   ^
  59. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5198:1: note: here
  60.  case DMAPDATALARGEMAPTILE: //word -- two of these, so let's to LargemapTile[2]
  61.  ^~~~
  62. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5211:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  63.   }
  64.   ^
  65. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5213:1: note: here
  66.  case DMAPDATALARGEMAPCSET: //word -- two of these, so let's to LargemaCSet[2]
  67.  ^~~~
  68. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5226:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  69.   }
  70.   ^
  71. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5228:1: note: here
  72.  case DMAPDATAMUISCTRACK: //byte
  73.  ^~~~
  74. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5483:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  75.     } \
  76.     ^
  77. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5609:24: note: in expansion of macro ‘GET_COMBO_BYTE_INDEX’
  78.  case COMBODEXPANSION:  GET_COMBO_BYTE_INDEX(expansion, "Expansion[]", 6);    //C , 6 INDICES
  79.                         ^~~~~~~~~~~~~~~~~~~~
  80. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5610:1: note: here
  81.  case COMBODATTRIBUTES:   GET_COMBO_VAR_INDEX(attributes, "Attributes[]", 4);     //LONG, 4 INDICES, INDIVIDUAL VALUES
  82.  ^~~~
  83. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5464:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  84.     } \
  85.     ^
  86. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5610:26: note: in expansion of macro ‘GET_COMBO_VAR_INDEX’
  87.  case COMBODATTRIBUTES:   GET_COMBO_VAR_INDEX(attributes, "Attributes[]", 4);     //LONG, 4 INDICES, INDIVIDUAL VALUES
  88.                           ^~~~~~~~~~~~~~~~~~~
  89. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5611:1: note: here
  90.  case COMBODUSRFLAGS:  GET_COMBO_VAR_INT(usrflags, "UserFlags"); break;    //LONG
  91.  ^~~~
  92. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5464:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  93.     } \
  94.     ^
  95. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5612:26: note: in expansion of macro ‘GET_COMBO_VAR_INDEX’
  96.  case COMBODTRIGGERFLAGS: GET_COMBO_VAR_INDEX(triggerflags, "TriggerFlags[]", 3);    //LONG 3 INDICES AS FLAGSETS
  97.                           ^~~~~~~~~~~~~~~~~~~
  98. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5613:1: note: here
  99.  case COMBODTRIGGERLEVEL: GET_COMBO_VAR_INT(triggerlevel, "TriggerLevel"); break;    //LONG
  100.  ^~~~
  101. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5575:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  102.     } \
  103.     ^
  104. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5620:26: note: in expansion of macro ‘GET_COMBOCLASS_BYTE_INDEX’
  105.  case COMBODBLOCKWEAPON:  GET_COMBOCLASS_BYTE_INDEX(block_weapon, "BlockWeapon[]", 32);    //C, 32 INDICES
  106.                           ^~~~~~~~~~~~~~~~~~~~~~~~~
  107. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5621:1: note: here
  108.  case COMBODCONVXSPEED:  GET_COMBOCLASS_VAR_DWORD(conveyor_x_speed, "ConveyorSpeedX"); break;  //SHORT
  109.  ^~~~
  110. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5516:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
  111.    if(ri->combosref < 0 || ri->combosref > (MAXCOMBOS-1) ) \
  112.    ^~
  113. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5644:24: note: in expansion of macro ‘GET_COMBOCLASS_VAR_BYTE’
  114.  case COMBODMODMPTYPE:  GET_COMBOCLASS_VAR_BYTE(modify_mp_type, "MagicType");    //C
  115.                         ^~~~~~~~~~~~~~~~~~~~~~~
  116. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5645:1: note: here
  117.  case COMBODNOPUSHBLOCK:  GET_COMBOCLASS_VAR_BYTE(no_push_blocks, "NoPushBlocks"); break;   //C
  118.  ^~~~
  119. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5516:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
  120.    if(ri->combosref < 0 || ri->combosref > (MAXCOMBOS-1) ) \
  121.    ^~
  122. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5650:24: note: in expansion of macro ‘GET_COMBOCLASS_VAR_BYTE’
  123.  case COMBODPUSHHEAVY:  GET_COMBOCLASS_VAR_BYTE(push_weight, "PushHeavy");    //C
  124.                         ^~~~~~~~~~~~~~~~~~~~~~~
  125. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5651:1: note: here
  126.  case COMBODPUSHED:  GET_COMBOCLASS_VAR_BYTE(pushed, "Pushed"); break;    //C
  127.  ^~~~
  128. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5575:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  129.     } \
  130.     ^
  131. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5662:27: note: in expansion of macro ‘GET_COMBOCLASS_BYTE_INDEX’
  132.  case COMBODSTRIKEWEAPONS: GET_COMBOCLASS_BYTE_INDEX(strike_weapons, "Strike[]", 32);   //BYTE, 32 INDICES.
  133.                            ^~~~~~~~~~~~~~~~~~~~~~~~~
  134. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5663:1: note: here
  135.  case COMBODSTRIKEREMNANTS: GET_COMBOCLASS_VAR_INT(strike_remnants, "StrikeRemnants"); break;  //LONG
  136.  ^~~~
  137. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5985:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  138.   }
  139.   ^
  140. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:5988:1: note: here
  141.  case NPCMATCHINITDLABEL:   //Same form as SetScreenD()
  142.  ^~~~
  143. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp: In function ‘void set_register(long int, long int):
  144. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:8669:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
  145.    }
  146.    ^
  147. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:8672:2: note: here
  148.   case NPCFROZENTILE:
  149.   ^~~~
  150. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10410:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
  151.    }
  152.    ^
  153. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10414:1: note: here
  154.  case SHOPDATASTRING:
  155.  ^~~~
  156. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10512:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  157.   }
  158.   ^
  159. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10514:1: note: here
  160.  case DMAPDATAMINIMAPCSET: //byte - two of these, so let's do MinimapCSet[2]
  161.  ^~~~
  162. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10526:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  163.   }
  164.   ^
  165. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10528:1: note: here
  166.  case DMAPDATALARGEMAPTILE: //word -- two of these, so let's to LargemapTile[2]
  167.  ^~~~
  168. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10540:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  169.   }
  170.   ^
  171. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10542:1: note: here
  172.  case DMAPDATALARGEMAPCSET: //word -- two of these, so let's to LargemaCSet[2]
  173.  ^~~~
  174. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10554:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  175.   }
  176.   ^
  177. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10556:1: note: here
  178.  case DMAPDATAMUISCTRACK: //byte
  179.  ^~~~
  180. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10805:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  181.     } \
  182.     ^
  183. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10928:23: note: in expansion of macro ‘SET_COMBO_BYTE_INDEX’
  184.  case COMBODEXPANSION: SET_COMBO_BYTE_INDEX(expansion, "Expansion[]", 6);     //C , 6 INDICES
  185.                        ^~~~~~~~~~~~~~~~~~~~
  186. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10929:1: note: here
  187.  case COMBODATTRIBUTES:  SET_COMBO_VAR_INDEX(attributes, "Attributes[]", 4);      //LONG, 4 INDICES, INDIVIDUAL VALUES
  188.  ^~~~
  189. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10788:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  190.     } \
  191.     ^
  192. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10929:25: note: in expansion of macro ‘SET_COMBO_VAR_INDEX’
  193.  case COMBODATTRIBUTES:  SET_COMBO_VAR_INDEX(attributes, "Attributes[]", 4);      //LONG, 4 INDICES, INDIVIDUAL VALUES
  194.                          ^~~~~~~~~~~~~~~~~~~
  195. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10930:1: note: here
  196.  case COMBODUSRFLAGS: SET_COMBO_VAR_INT(usrflags, "UserFlags"); break;     //LONG
  197.  ^~~~
  198. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10788:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  199.     } \
  200.     ^
  201. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10931:26: note: in expansion of macro ‘SET_COMBO_VAR_INDEX’
  202.  case COMBODTRIGGERFLAGS: SET_COMBO_VAR_INDEX(triggerflags, "TriggerFlags[]", 3);    //LONG 3 INDICES AS FLAGSETS
  203.                           ^~~~~~~~~~~~~~~~~~~
  204. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10932:1: note: here
  205.  case COMBODTRIGGERLEVEL: SET_COMBO_VAR_INT(triggerlevel, "TriggerLevel"); break;    //LONG
  206.  ^~~~
  207. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10893:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  208.     } \
  209.     ^
  210. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10939:26: note: in expansion of macro ‘SET_COMBOCLASS_BYTE_INDEX’
  211.  case COMBODBLOCKWEAPON:  SET_COMBOCLASS_BYTE_INDEX(block_weapon, "BlockWeapon[]", 32);    //C, 32 INDICES
  212.                           ^~~~~~~~~~~~~~~~~~~~~~~~~
  213. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10940:1: note: here
  214.  case COMBODCONVXSPEED:  SET_COMBOCLASS_VAR_DWORD(conveyor_x_speed, "ConveyorSpeedX"); break;  //SHORT
  215.  ^~~~
  216. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10852:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
  217.    if(ri->combosref < 0 || ri->combosref > (MAXCOMBOS-1) ) \
  218.    ^~
  219. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10963:24: note: in expansion of macro ‘SET_COMBOCLASS_VAR_BYTE’
  220.  case COMBODMODMPTYPE:  SET_COMBOCLASS_VAR_BYTE(modify_mp_type, "MagicType");     //C
  221.                         ^~~~~~~~~~~~~~~~~~~~~~~
  222. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10964:1: note: here
  223.  case COMBODNOPUSHBLOCK:  SET_COMBOCLASS_VAR_BYTE(no_push_blocks, "NoPushBlocks"); break;   //C
  224.  ^~~~
  225. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10852:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
  226.    if(ri->combosref < 0 || ri->combosref > (MAXCOMBOS-1) ) \
  227.    ^~
  228. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10969:24: note: in expansion of macro ‘SET_COMBOCLASS_VAR_BYTE’
  229.  case COMBODPUSHHEAVY:  SET_COMBOCLASS_VAR_BYTE(push_weight, "PushHeavy");    //C
  230.                         ^~~~~~~~~~~~~~~~~~~~~~~
  231. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10970:1: note: here
  232.  case COMBODPUSHED:  SET_COMBOCLASS_VAR_BYTE(pushed, "Pushed"); break;    //C
  233.  ^~~~
  234. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10893:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
  235.     } \
  236.     ^
  237. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10981:27: note: in expansion of macro ‘SET_COMBOCLASS_BYTE_INDEX’
  238.  case COMBODSTRIKEWEAPONS: SET_COMBOCLASS_BYTE_INDEX(strike_weapons, "Strike[]", 32);   //BYTE, 32 INDICES.
  239.                            ^~~~~~~~~~~~~~~~~~~~~~~~~
  240. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:10982:1: note: here
  241.  case COMBODSTRIKEREMNANTS: SET_COMBOCLASS_VAR_INT(strike_remnants, "StrikeRemnants"); break;  //LONG
  242.  ^~~~
  243. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:11309:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  244.   }
  245.   ^
  246. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:11316:1: note: here
  247.  case AUDIOVOLUME:
  248.  ^~~~
  249. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp: In function ‘int run_script(byte, word, long int):
  250. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16150:29: warning: this statement may fall through [-Wimplicit-fallthrough=]
  251.      FFScript::set_screendoor(&TheMaps[map * MAPSCRS + scrn], index, nn);
  252.      ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  253. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16154:3: note: here
  254.    case GETSCREENLAYOP:
  255.    ^~~~
  256. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16820:54: warning: this statement may fall through [-Wimplicit-fallthrough=]
  257.    case GETSPRITEDATATILE: FFScript::getSpriteDataTile();
  258.                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  259. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16821:3: note: here
  260.    case GETSPRITEDATAMISC: FFScript::getSpriteDataCSets();
  261.    ^~~~
  262. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16821:55: warning: this statement may fall through [-Wimplicit-fallthrough=]
  263.    case GETSPRITEDATAMISC: FFScript::getSpriteDataCSets();
  264.                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  265. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16822:3: note: here
  266.    case GETSPRITEDATACGETS: FFScript::getSpriteDataCSets();
  267.    ^~~~
  268. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16822:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  269.    case GETSPRITEDATACGETS: FFScript::getSpriteDataCSets();
  270.                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  271. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16823:3: note: here
  272.    case GETSPRITEDATAFRAMES: FFScript::getSpriteDataFrames();
  273.    ^~~~
  274. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16823:58: warning: this statement may fall through [-Wimplicit-fallthrough=]
  275.    case GETSPRITEDATAFRAMES: FFScript::getSpriteDataFrames();
  276.                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  277. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16824:3: note: here
  278.    case GETSPRITEDATASPEED: FFScript::getSpriteDataSpeed();
  279.    ^~~~
  280. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16824:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  281.    case GETSPRITEDATASPEED: FFScript::getSpriteDataSpeed();
  282.                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  283. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16825:3: note: here
  284.    case GETSPRITEDATATYPE: FFScript::getSpriteDataType();
  285.    ^~~~
  286. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16825:54: warning: this statement may fall through [-Wimplicit-fallthrough=]
  287.    case GETSPRITEDATATYPE: FFScript::getSpriteDataType();
  288.                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  289. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16828:3: note: here
  290.    case SETSPRITEDATATILE: FFScript::setSpriteDataTile();
  291.    ^~~~
  292. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16828:54: warning: this statement may fall through [-Wimplicit-fallthrough=]
  293.    case SETSPRITEDATATILE: FFScript::setSpriteDataTile();
  294.                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  295. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16829:3: note: here
  296.    case SETSPRITEDATAMISC: FFScript::setSpriteDataMisc();
  297.    ^~~~
  298. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16829:54: warning: this statement may fall through [-Wimplicit-fallthrough=]
  299.    case SETSPRITEDATAMISC: FFScript::setSpriteDataMisc();
  300.                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  301. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16830:3: note: here
  302.    case SETSPRITEDATACSETS: FFScript::setSpriteDataCSets();
  303.    ^~~~
  304. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16830:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  305.    case SETSPRITEDATACSETS: FFScript::setSpriteDataCSets();
  306.                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  307. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16831:3: note: here
  308.    case SETSPRITEDATAFRAMES: FFScript::setSpriteDataFrames();
  309.    ^~~~
  310. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16831:58: warning: this statement may fall through [-Wimplicit-fallthrough=]
  311.    case SETSPRITEDATAFRAMES: FFScript::setSpriteDataFrames();
  312.                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  313. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16832:3: note: here
  314.    case SETSPRITEDATASPEED: FFScript::setSpriteDataSpeed();
  315.    ^~~~
  316. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16832:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  317.    case SETSPRITEDATASPEED: FFScript::setSpriteDataSpeed();
  318.                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  319. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16833:3: note: here
  320.    case SETSPRITEDATATYPE: FFScript::setSpriteDataType();
  321.    ^~~~
  322. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16833:54: warning: this statement may fall through [-Wimplicit-fallthrough=]
  323.    case SETSPRITEDATATYPE: FFScript::setSpriteDataType();
  324.                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  325. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16836:3: note: here
  326.    case SETCONTINUESCREEN: FFScript::FFChangeSubscreenText();
  327.    ^~~~
  328. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16836:58: warning: this statement may fall through [-Wimplicit-fallthrough=]
  329.    case SETCONTINUESCREEN: FFScript::FFChangeSubscreenText();
  330.                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  331. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16837:3: note: here
  332.    case SETCONTINUESTRING: FFScript::FFSetSaveScreenSetting();
  333.    ^~~~
  334. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16837:59: warning: this statement may fall through [-Wimplicit-fallthrough=]
  335.    case SETCONTINUESTRING: FFScript::FFSetSaveScreenSetting();
  336.                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  337. /home/peter/Projects/ZeldaClassic/src/ffscript.cpp:16841:3: note: here
  338.    case NPCDEAD:
  339.    ^~~~
  340. /home/peter/Projects/ZeldaClassic/src/zelda.cpp: In function ‘void runDrunkRNG():
  341. /home/peter/Projects/ZeldaClassic/src/zelda.cpp:3085:18: warning: comparison of integer expressions of different signedness:int’ and ‘unsigned int[-Wsign-compare]
  342.   for(int i = 0; i<sizeof(drunk_toggle_state); i++){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement