Advertisement
Guest User

Compilare...

a guest
Jun 17th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 99.16 KB | None | 0 0
  1. root@:~ # cd /usr/src/Server/game/src
  2. root@:/usr/src/Server/game/src # gmake clean
  3. root@:/usr/src/Server/game/src # gmake -j20
  4. compile BattleArena.cpp
  5. compile FSM.cpp
  6. compile MarkConvert.cpp
  7. compile MarkImage.cpp
  8. compile MarkManager.cpp
  9. compile OXEvent.cpp
  10. compile TrafficProfiler.cpp
  11. compile ani.cpp
  12. compile arena.cpp
  13. compile banword.cpp
  14. compile battle.cpp
  15. compile blend_item.cpp
  16. compile block_country.cpp
  17. compile buffer_manager.cpp
  18. compile building.cpp
  19. compile castle.cpp
  20. compile char.cpp
  21. compile char_affect.cpp
  22. compile char_battle.cpp
  23. compile char_change_empire.cpp
  24. compile char_horse.cpp
  25. char.cpp:7715:3: warning: this decimal constant is unsigned only in ISO C90 [ena bled by default]
  26. return 2500000000;
  27. ^
  28. char_battle.cpp: In member function 'void CHARACTER::Reward(bool)':
  29. char_battle.cpp:781:6: warning: suggest explicit braces to avoid ambiguous 'else ' [-Wparentheses]
  30. if (GetLevel() - pkAttacker->GetLevel() >= -10)
  31. ^
  32. char.cpp: In member function 'int CHARACTER::GetPolymorphPoint(BYTE) const':
  33. char.cpp:2953:57: warning: suggest parentheses around '&&' within '||' [-Wparent heses]
  34. if (GetJob() == JOB_SHAMAN || GetJob() == JOB_SURA && GetSkillGroup() == 2 )
  35. ^
  36. char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool) ':
  37. char.cpp:3161:30: warning: comparison between signed and unsigned integer expres sions [-Wsign-compare]
  38. if (amount < 0 && exp < -amount)
  39. ^
  40. char.cpp: In member function 'void CHARACTER::SetTarget(LPCHARACTER)':
  41. char.cpp:5596:29: warning: suggest parentheses around '&&' within '||' [-Wparent heses]
  42. if (m_pkChrTarget->IsPC() && !m_pkChrTarget->IsPolymorphed() || m_pkChrTarget ->GetMaxHP() <= 0)
  43. ^
  44. char.cpp: In member function 'bool CHARACTER::CanSummon(int)':
  45. char.cpp:6782:49: warning: suggest parentheses around '&&' within '||' [-Wparent heses]
  46. return (iLeaderShip >= 20 || iLeaderShip >= 12 && m_dwLastDeadTime + 180 > get _dword_time());
  47. ^
  48. compile char_item.cpp
  49. compile char_manager.cpp
  50. compile char_quickslot.cpp
  51. compile char_resist.cpp
  52. compile char_skill.cpp
  53. compile char_state.cpp
  54. compile PetSystem.cpp
  55. compile cmd.cpp
  56. compile cmd_emotion.cpp
  57. compile cmd_general.cpp
  58. compile cmd_gm.cpp
  59. In file included from ../../libthecore/include/stdafx.h:141:0,
  60. from stdafx.h:9,
  61. from char_item.cpp:1:
  62. belt_inventory_helper.h: In static member function 'static CBeltInventoryHelper: :TGradeUnit CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
  63. ../../libthecore/include/utils.h:143:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  64. #define _countof(_Array) sizeof(*__countof_helper(_Array))
  65. ^
  66. belt_inventory_helper.h:28:16: note: in expansion of macro '_countof'
  67. if (level >= _countof(beltGradeByLevelTable))
  68. ^
  69. char_item.cpp: In member function 'bool CHARACTER::UseItemEx(LPITEM, TItemPos)':
  70. char_item.cpp:2005:41: warning: passing NULL to non-pointer argument 1 of 'std:: vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_typ e&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::va lue_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CIt em*>]' [-Wconversion-null]
  71. std::vector <LPITEM> item_gets(NULL);
  72. ^
  73. char_item.cpp:2069:40: warning: passing NULL to non-pointer argument 1 of 'std:: vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_typ e&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::va lue_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CIt em*>]' [-Wconversion-null]
  74. std::vector <LPITEM> item_gets(NULL);
  75. ^
  76. char_item.cpp:2429:162: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
  77. sprintf(buf, "Inc %ds by item{VN:%d SOC%d:%d}", ret, item->GetVnum(), ITEM_SOCKET_CHARGING_AMOUNT_IDX, item->GetSocket(ITEM_SOCKET_CHARGING_AMOUNT_ID X));
  78. ^
  79. char_item.cpp:2433:159: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
  80. sprintf(buf, "Inc %ds by item{VN:%d VAL%d:%d}", ret, item->GetVnum(), ITEM_VALUE_CHARGING_AMOUNT_IDX, item->GetValue(ITEM_VALUE_CHARGING_AMOUNT_IDX)) ;
  81. ^
  82. char_item.cpp:2445:159: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
  83. sprintf(buf, "No change by item{VN:%d SOC%d:%d}", item->GetVnum(), IT EM_SOCKET_CHARGING_AMOUNT_IDX, item->GetSocket(ITEM_SOCKET_CHARGING_AMOUNT_IDX)) ;
  84. ^
  85. char_item.cpp:2449:156: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
  86. sprintf(buf, "No change by item{VN:%d VAL%d:%d}", item->GetVnum(), IT EM_VALUE_CHARGING_AMOUNT_IDX, item->GetValue(ITEM_VALUE_CHARGING_AMOUNT_IDX));
  87. ^
  88. char_item.cpp:2476:163: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
  89. sprintf(buf, "Increase %ds by item{VN:%d VAL%d:%d}", ret, item->GetVnu m(), ITEM_VALUE_CHARGING_AMOUNT_IDX, item->GetValue(ITEM_VALUE_CHARGING_AMOUNT_I DX));
  90. ^
  91. char_item.cpp:2484:155: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
  92. sprintf(buf, "No change by item{VN:%d VAL%d:%d}", item->GetVnum(), ITE M_VALUE_CHARGING_AMOUNT_IDX, item->GetValue(ITEM_VALUE_CHARGING_AMOUNT_IDX));
  93. ^
  94. char_item.cpp:3671:45: warning: passing NULL to non-pointer argument 1 of 'std:: vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_typ e&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::va lue_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CIt em*>]' [-Wconversion-null]
  95. std::vector <LPITEM> item_gets(NULL);
  96. ^
  97. char_item.cpp:3675:53: warning: suggest parentheses around '&&' within '||' [-Wp arentheses]
  98. if (item->GetVnum() == ITEM_VALENTINE_ROSE && SEX_MALE==GET_SEX(this) ||
  99. ^
  100. char_item.cpp:3695:45: warning: passing NULL to non-pointer argument 1 of 'std:: vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_typ e&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::va lue_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CIt em*>]' [-Wconversion-null]
  101. std::vector <LPITEM> item_gets(NULL);
  102. ^
  103. char_item.cpp:3699:53: warning: suggest parentheses around '&&' within '||' [-Wp arentheses]
  104. if (item->GetVnum() == ITEM_WHITEDAY_CANDY && SEX_MALE==GET_SEX(this) ||
  105. ^
  106. char_item.cpp:3718:45: warning: passing NULL to non-pointer argument 1 of 'std:: vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_typ e&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::va lue_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CIt em*>]' [-Wconversion-null]
  107. std::vector <LPITEM> item_gets(NULL);
  108. ^
  109. In file included from ../../libthecore/include/stdafx.h:141:0,
  110. from stdafx.h:9,
  111. from char_item.cpp:1:
  112. ../../libthecore/include/utils.h:143:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  113. #define _countof(_Array) sizeof(*__countof_helper(_Array))
  114. ^
  115. char_item.cpp:5131:31: note: in expansion of macro '_countof'
  116. if (item->GetSocket(0) >= _countof(aApplyInfo))
  117. ^
  118. char_item.cpp:1707:6: warning: variable 'iLimitTimerBasedOnWearFlagIndex' set bu t not used [-Wunused-but-set-variable]
  119. int iLimitTimerBasedOnWearFlagIndex = -1;
  120. ^
  121. char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
  122. char_item.cpp:5357:22: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
  123. if (item->GetVnum() == 50200 | item->GetVnum() == 71049)
  124. ^
  125. char_item.cpp:5203:7: warning: unused variable 'wDestCell' [-Wunused-variable]
  126. WORD wDestCell = DestCell.cell;
  127. ^
  128. char_item.cpp:5204:7: warning: unused variable 'bDestInven' [-Wunused-variable]
  129. BYTE bDestInven = DestCell.window_type;
  130. ^
  131. char_item.cpp: In member function 'bool CHARACTER::EquipItem(LPITEM, int)':
  132. char_item.cpp:6214:141: warning: array subscript has type 'char' [-Wchar-subscri pts]
  133. long duration = (0 != item->GetSocket(0)) ? item->GetSocket(0) : item->GetP roto()->aLimits[item->GetProto()->cLimitRealTimeFirstUseIndex].lValue;
  134. ^
  135. char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(L PITEM)':
  136. char_item.cpp:6299:79: warning: comparison between signed and unsigned integer e xpressions [-Wsign-compare]
  137. for (int i = 0; i < sizeof(g_aBuffOnAttrPoints)/sizeof(g_aBuffOnAttrPoints[0]) ; i++)
  138. ^
  139. char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromIte m(LPITEM)':
  140. char_item.cpp:6311:79: warning: comparison between signed and unsigned integer e xpressions [-Wsign-compare]
  141. for (int i = 0; i < sizeof(g_aBuffOnAttrPoints)/sizeof(g_aBuffOnAttrPoints[0]) ; i++)
  142. ^
  143. compile cmd_oxevent.cpp
  144. char_skill.cpp: In member function 'bool CHARACTER::UseSkill(DWORD, LPCHARACTER, bool)':
  145. char_skill.cpp:2489:50: warning: suggest parentheses around '&&' within '||' [-W parentheses]
  146. if (IsAffectFlag(AFF_TANHWAN_DASH) || pkVictim && pkVictim != this)
  147. ^
  148. char_skill.cpp:2595:96: warning: suggest parentheses around '&&' within '||' [-W parentheses]
  149. if (pkSk->dwVnum == SKILL_MUYEONG || pkSk->IsChargeSkill() && !IsAffectFlag(AF F_TANHWAN_DASH) && !pkVictim)
  150. ^
  151. char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYT E, int) const':
  152. char_item.cpp:680:1: warning: control reaches end of non-void function [-Wreturn -type]
  153. }
  154. ^
  155. compile config.cpp
  156. compile constants.cpp
  157. PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
  158. PetSystem.cpp:257:7: warning: unused variable 'bDoMoveAlone' [-Wunused-variable]
  159. bool bDoMoveAlone = true; // ij▒▒▒Ϳ▒ ▒▒▒▒▒▒ ▒▒▒ ▒▒ ȥ▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒ϰ▒▒▒ ▒▒ ▒▒ -_-;
  160. ^
  161. PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, LPITEM, const char*, bool, DWORD)':
  162. PetSystem.cpp:563:8: warning: unused variable 'petVID' [-Wunused-variable]
  163. DWORD petVID = petActor->Summon(petName, pSummonItem, bSpawnFar);
  164. ^
  165. char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
  166. char_state.cpp:803:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  167. if (!IsWalking() && !IsRiding())
  168. ^
  169. char_state.cpp:901:17: warning: unused variable 'rider' [-Wunused-variable]
  170. LPCHARACTER rider = GetRider();
  171. ^
  172. compile crc32.cpp
  173. compile cube.cpp
  174. compile damage_top.cpp
  175. compile db.cpp
  176. compile desc.cpp
  177. compile desc_client.cpp
  178. compile desc_manager.cpp
  179. compile desc_p2p.cpp
  180. compile dev_log.cpp
  181. compile dungeon.cpp
  182. In file included from desc.cpp:8:0:
  183. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  184. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  185. *((sh_int *) a) = ind;
  186. ^
  187. protocol.h: In function 'const char* encode_4bytes(int)':
  188. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  189. *((int *) a) = ind;
  190. ^
  191. constants.cpp:291:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  192. 2500000000, // 100
  193. ^
  194. constants.cpp:292:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  195. 2500000000,
  196. ^
  197. constants.cpp:293:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  198. 2500000000,
  199. ^
  200. constants.cpp:294:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  201. 2500000000,
  202. ^
  203. constants.cpp:295:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  204. 2500000000,
  205. ^
  206. constants.cpp:296:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  207. 2500000000, // 105
  208. ^
  209. constants.cpp:297:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  210. 2500000000,
  211. ^
  212. constants.cpp:298:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  213. 2500000000,
  214. ^
  215. constants.cpp:299:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  216. 2500000000,
  217. ^
  218. constants.cpp:300:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  219. 2500000000,
  220. ^
  221. constants.cpp:301:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  222. 2500000000, // 110
  223. ^
  224. constants.cpp:302:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  225. 2500000000,
  226. ^
  227. constants.cpp:303:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  228. 2500000000,
  229. ^
  230. constants.cpp:304:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  231. 2500000000,
  232. ^
  233. constants.cpp:305:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  234. 2500000000,
  235. ^
  236. constants.cpp:306:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  237. 2500000000, // 115
  238. ^
  239. constants.cpp:307:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  240. 2500000000,
  241. ^
  242. constants.cpp:308:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  243. 2500000000,
  244. ^
  245. constants.cpp:309:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  246. 2500000000,
  247. ^
  248. constants.cpp:310:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  249. 2500000000,
  250. ^
  251. constants.cpp:311:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  252. 2500000000, // 120
  253. ^
  254. constants.cpp:312:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  255. 2500000000,
  256. ^
  257. constants.cpp:313:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  258. 2500000000,
  259. ^
  260. constants.cpp:314:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  261. 2500000000,
  262. ^
  263. constants.cpp:315:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  264. 2500000000,
  265. ^
  266. constants.cpp:316:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  267. 2500000000, // 125
  268. ^
  269. constants.cpp:317:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  270. 2500000000,
  271. ^
  272. constants.cpp:318:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  273. 2500000000,
  274. ^
  275. constants.cpp:319:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  276. 2500000000,
  277. ^
  278. constants.cpp:320:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  279. 2500000000,
  280. ^
  281. constants.cpp:321:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  282. 2500000000, // 130
  283. ^
  284. constants.cpp:322:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  285. 2266500000,
  286. ^
  287. constants.cpp:323:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  288. 2268000000,
  289. ^
  290. constants.cpp:324:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  291. 2269500000,
  292. ^
  293. constants.cpp:325:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  294. 2271000000,
  295. ^
  296. constants.cpp:326:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  297. 2272500000, // 135
  298. ^
  299. constants.cpp:327:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  300. 2274000000,
  301. ^
  302. constants.cpp:328:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  303. 2275500000,
  304. ^
  305. constants.cpp:329:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  306. 2277000000,
  307. ^
  308. constants.cpp:330:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  309. 2278500000,
  310. ^
  311. constants.cpp:331:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  312. 2280000000, // 140
  313. ^
  314. constants.cpp:332:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  315. 2281800000,
  316. ^
  317. constants.cpp:333:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  318. 2283600000,
  319. ^
  320. constants.cpp:334:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  321. 2285400000,
  322. ^
  323. constants.cpp:335:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  324. 2287200000,
  325. ^
  326. constants.cpp:336:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  327. 2289000000, // 145
  328. ^
  329. constants.cpp:337:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  330. 2290800000,
  331. ^
  332. constants.cpp:338:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  333. 2292600000,
  334. ^
  335. constants.cpp:339:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  336. 2294400000,
  337. ^
  338. constants.cpp:340:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  339. 2296200000,
  340. ^
  341. constants.cpp:341:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  342. 2298000000, // 150
  343. ^
  344. constants.cpp:342:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  345. 2299800000,
  346. ^
  347. constants.cpp:343:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  348. 2301600000,
  349. ^
  350. constants.cpp:344:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  351. 2303400000,
  352. ^
  353. constants.cpp:345:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  354. 2305200000,
  355. ^
  356. constants.cpp:346:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  357. 2307000000, // 155
  358. ^
  359. constants.cpp:347:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  360. 2308800000,
  361. ^
  362. constants.cpp:348:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  363. 2310600000,
  364. ^
  365. constants.cpp:349:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  366. 2312400000,
  367. ^
  368. constants.cpp:350:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  369. 2314200000,
  370. ^
  371. constants.cpp:351:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  372. 2316000000, // 160
  373. ^
  374. constants.cpp:352:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  375. 2317800000,
  376. ^
  377. constants.cpp:353:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  378. 2319600000,
  379. ^
  380. constants.cpp:354:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  381. 2321400000,
  382. ^
  383. constants.cpp:355:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  384. 2323200000,
  385. ^
  386. constants.cpp:356:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  387. 2325000000, // 165
  388. ^
  389. constants.cpp:357:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  390. 2326800000,
  391. ^
  392. constants.cpp:358:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  393. 2328600000,
  394. ^
  395. constants.cpp:359:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  396. 2330400000,
  397. ^
  398. constants.cpp:360:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  399. 2332200000,
  400. ^
  401. constants.cpp:361:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  402. 2334000000, // 170
  403. ^
  404. constants.cpp:362:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  405. 2335800000,
  406. ^
  407. constants.cpp:363:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  408. 2337600000,
  409. ^
  410. constants.cpp:364:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  411. 2339400000,
  412. ^
  413. constants.cpp:365:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  414. 2341200000,
  415. ^
  416. constants.cpp:366:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  417. 2343000000, // 175
  418. ^
  419. constants.cpp:367:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  420. 2344800000,
  421. ^
  422. constants.cpp:368:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  423. 2346600000,
  424. ^
  425. constants.cpp:369:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  426. 2348400000,
  427. ^
  428. constants.cpp:370:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  429. 2350200000,
  430. ^
  431. constants.cpp:371:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  432. 2352000000, // 180
  433. ^
  434. constants.cpp:372:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  435. 2353800000,
  436. ^
  437. constants.cpp:373:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  438. 2355600000,
  439. ^
  440. constants.cpp:374:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  441. 2357400000,
  442. ^
  443. constants.cpp:375:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  444. 2359200000,
  445. ^
  446. constants.cpp:376:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  447. 2361000000, // 185
  448. ^
  449. constants.cpp:377:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  450. 2362800000,
  451. ^
  452. constants.cpp:378:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  453. 2364600000,
  454. ^
  455. constants.cpp:379:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  456. 2366400000,
  457. ^
  458. constants.cpp:380:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  459. 2368200000,
  460. ^
  461. constants.cpp:381:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  462. 2370000000, // 190
  463. ^
  464. constants.cpp:382:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  465. 2371800000,
  466. ^
  467. constants.cpp:383:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  468. 2373600000,
  469. ^
  470. constants.cpp:384:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  471. 2375400000,
  472. ^
  473. constants.cpp:385:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  474. 2377200000,
  475. ^
  476. constants.cpp:386:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  477. 2379000000, // 195
  478. ^
  479. constants.cpp:387:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  480. 2380800000,
  481. ^
  482. constants.cpp:388:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  483. 2382600000,
  484. ^
  485. constants.cpp:389:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  486. 2384400000,
  487. ^
  488. constants.cpp:390:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  489. 2386200000,
  490. ^
  491. constants.cpp:391:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  492. 2388000000, // 200
  493. ^
  494. constants.cpp:392:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  495. 2389800000,
  496. ^
  497. constants.cpp:393:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  498. 2391600000,
  499. ^
  500. constants.cpp:394:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  501. 2393400000,
  502. ^
  503. constants.cpp:395:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  504. 2395200000,
  505. ^
  506. constants.cpp:396:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  507. 2397000000, // 205
  508. ^
  509. constants.cpp:397:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  510. 2398800000,
  511. ^
  512. constants.cpp:398:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  513. 2400600000,
  514. ^
  515. constants.cpp:399:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  516. 2402400000,
  517. ^
  518. constants.cpp:400:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  519. 2404200000,
  520. ^
  521. constants.cpp:401:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  522. 2406000000, // 210
  523. ^
  524. constants.cpp:402:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  525. 2407800000,
  526. ^
  527. constants.cpp:403:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  528. 2409600000,
  529. ^
  530. constants.cpp:404:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  531. 2411400000,
  532. ^
  533. constants.cpp:405:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  534. 2413200000,
  535. ^
  536. constants.cpp:406:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  537. 2415000000, // 215
  538. ^
  539. constants.cpp:407:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  540. 2416800000,
  541. ^
  542. constants.cpp:408:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  543. 2418600000,
  544. ^
  545. constants.cpp:409:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  546. 2420400000,
  547. ^
  548. constants.cpp:410:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  549. 2422200000,
  550. ^
  551. constants.cpp:411:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  552. 2424000000, // 220
  553. ^
  554. constants.cpp:412:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  555. 2425800000,
  556. ^
  557. constants.cpp:413:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  558. 2427600000,
  559. ^
  560. constants.cpp:414:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  561. 2429400000,
  562. ^
  563. constants.cpp:415:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  564. 2431200000,
  565. ^
  566. constants.cpp:416:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  567. 2433000000, // 225
  568. ^
  569. constants.cpp:417:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  570. 2434800000,
  571. ^
  572. constants.cpp:418:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  573. 2436600000,
  574. ^
  575. constants.cpp:419:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  576. 2438400000,
  577. ^
  578. constants.cpp:420:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  579. 2440200000,
  580. ^
  581. constants.cpp:421:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  582. 2442000000, // 230
  583. ^
  584. constants.cpp:422:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  585. 2443800000,
  586. ^
  587. constants.cpp:423:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  588. 2445600000,
  589. ^
  590. constants.cpp:424:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  591. 2447400000,
  592. ^
  593. constants.cpp:425:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  594. 2449200000,
  595. ^
  596. constants.cpp:426:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  597. 2451000000, // 235
  598. ^
  599. constants.cpp:427:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  600. 2452800000,
  601. ^
  602. constants.cpp:428:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  603. 2454600000,
  604. ^
  605. constants.cpp:429:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  606. 2456400000,
  607. ^
  608. constants.cpp:430:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  609. 2458200000,
  610. ^
  611. constants.cpp:431:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  612. 2460000000, // 240
  613. ^
  614. constants.cpp:432:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  615. 2461800000,
  616. ^
  617. constants.cpp:433:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  618. 2463600000,
  619. ^
  620. constants.cpp:434:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  621. 2465400000,
  622. ^
  623. constants.cpp:435:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  624. 2467200000,
  625. ^
  626. constants.cpp:436:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  627. 2469000000, // 245
  628. ^
  629. constants.cpp:437:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  630. 2470800000,
  631. ^
  632. constants.cpp:438:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  633. 2472600000,
  634. ^
  635. constants.cpp:439:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  636. 2474400000,
  637. ^
  638. constants.cpp:440:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  639. 2478000000,
  640. ^
  641. constants.cpp:441:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  642. 2500000000, // 250
  643. ^
  644. constants.cpp:442:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  645. 2500000000,
  646. ^
  647. constants.cpp:443:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  648. 2500000000,
  649. ^
  650. constants.cpp:444:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  651. 2500000000,
  652. ^
  653. constants.cpp:445:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  654. 2500000000,
  655. ^
  656. constants.cpp:446:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  657. 2500000000, // 255
  658. ^
  659. compile entity.cpp
  660. compile empire_text_convert.cpp
  661. In file included from desc_p2p.cpp:3:0:
  662. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  663. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  664. *((sh_int *) a) = ind;
  665. ^
  666. protocol.h: In function 'const char* encode_4bytes(int)':
  667. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  668. *((int *) a) = ind;
  669. ^
  670. compile entity_view.cpp
  671. damage_top.cpp: In member function 'TDamage CDamageTop::GetDamage(LPCHARACTER, B YTE)':
  672. damage_top.cpp:64:39: warning: comparison between signed and unsigned integer ex pressions [-Wsign-compare]
  673. for(int i = 0; i < vecDamageTop.size(); i++)
  674. ^
  675. damage_top.cpp: In member function 'void CDamageTop::UpdateDamage(LPCHARACTER, L PCHARACTER, BYTE, DWORD)':
  676. damage_top.cpp:81:39: warning: comparison between signed and unsigned integer ex pressions [-Wsign-compare]
  677. for(int i = 0; i < vecDamageTop.size(); i++)
  678. ^
  679. damage_top.cpp: In member function 'void CDamageTop::UpdateDamageExtern(LPDESC, const char*)':
  680. damage_top.cpp:112:41: warning: comparison between signed and unsigned integer e xpressions [-Wsign-compare]
  681. for (int i = 0; i < vecDamageTop.size(); i++)
  682. ^
  683. damage_top.cpp: In member function 'void CDamageTop::GetSendVector(std::vector<S Damage>&)':
  684. damage_top.cpp:241:39: warning: comparison between signed and unsigned integer e xpressions [-Wsign-compare]
  685. for(int i = 0; i < vecDamageTop.size(); i++)
  686. ^
  687. cube.cpp: In function 'bool Cube_make(LPCHARACTER)':
  688. cube.cpp:552:34: warning: comparison between signed and unsigned integer express ions [-Wsign-compare]
  689. if (ch->GetGold() < cube_proto->gold)
  690. ^
  691. compile event.cpp
  692. cube.cpp: In function 'void Cube_MakeCubeInformationText()':
  693. cube.cpp:724:16: warning: unused variable 'npcVNUM' [-Wunused-variable]
  694. const DWORD& npcVNUM = iter->first;
  695. ^
  696. cube.cpp: In function 'bool Cube_InformationInitialize()':
  697. cube.cpp:791:40: warning: comparison between signed and unsigned integer express ions [-Wsign-compare]
  698. for (int i = 0; i < s_cube_proto.size(); ++i)
  699. ^
  700. In file included from desc_client.cpp:7:0:
  701. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  702. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  703. *((sh_int *) a) = ind;
  704. ^
  705. protocol.h: In function 'const char* encode_4bytes(int)':
  706. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  707. *((int *) a) = ind;
  708. ^
  709. In file included from desc_manager.cpp:10:0:
  710. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  711. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  712. *((sh_int *) a) = ind;
  713. ^
  714. protocol.h: In function 'const char* encode_4bytes(int)':
  715. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  716. *((int *) a) = ind;
  717. ^
  718. desc_manager.cpp: In member function 'DWORD DESC_MANAGER::CreateHandshake()':
  719. desc_manager.cpp:135:26: warning: dereferencing type-punned pointer will break s trict-aliasing rules [-Wstrict-aliasing]
  720. *(DWORD *) (crc_buf ) = val;
  721. ^
  722. desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD , bool)':
  723. desc_client.cpp:299:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  724. if (fForce || m_tLastChannelStatusUpdateTime+CHANNELSTATUS_UPDATE_PERIOD < t) {
  725. ^
  726. compile event_queue.cpp
  727. compile exchange.cpp
  728. compile file_loader.cpp
  729. cmd_gm.cpp: In function 'void do_set_stat(LPCHARACTER, const char*, int, int)':
  730. cmd_gm.cpp:4098:17: warning: NULL used in arithmetic [-Wpointer-arith]
  731. if (*szName == NULL || *szChangeAmount == '\0')
  732. ^
  733. compile fishing.cpp
  734. compile gm.cpp
  735. config.cpp: In function 'void config_init(const string&)':
  736. config.cpp:378:22: warning: NULL used in arithmetic [-Wpointer-arith]
  737. if (NULL != line[0])
  738. ^
  739. config.cpp:402:22: warning: NULL used in arithmetic [-Wpointer-arith]
  740. if (NULL != line[0])
  741. ^
  742. config.cpp:426:22: warning: NULL used in arithmetic [-Wpointer-arith]
  743. if (NULL != line[0])
  744. ^
  745. config.cpp:448:17: warning: unused variable 'line' [-Wunused-variable]
  746. const char * line = two_arguments(value_string, openid_host, sizeof(openid_h ost), openid_uri, sizeof(openid_uri));
  747. ^
  748. compile guild.cpp
  749. compile guild_manager.cpp
  750. gm.cpp: In function 'BYTE gm_new_get_level(const char*, const char*, const char* )':
  751. gm.cpp:69:21: warning: suggest parentheses around '&&' within '||' [-Wparenthese s]
  752. if ( LC_IsEurope() && !LC_IsTaiwan() || LC_IsSingapore() )
  753. ^
  754. compile guild_war.cpp
  755. compile horse_rider.cpp
  756. compile horsename_manager.cpp
  757. compile input.cpp
  758. compile input_auth.cpp
  759. cmd_gm.cpp: In function 'void do_mob_ld(LPCHARACTER, const char*, int, int)':
  760. cmd_gm.cpp:869:6: warning: 'y' may be used uninitialized in this function [-Wmay be-uninitialized]
  761. dir);
  762. ^
  763. cmd_gm.cpp:869:6: warning: 'x' may be used uninitialized in this function [-Wmay be-uninitialized]
  764. compile input_db.cpp
  765. compile input_login.cpp
  766. compile input_main.cpp
  767. cmd_gm.cpp: In function 'void do_use_item(LPCHARACTER, const char*, int, int)':
  768. cmd_gm.cpp:4614:41: warning: 'cell' may be used uninitialized in this function [ -Wmaybe-uninitialized]
  769. LPITEM item = ch->GetInventoryItem(cell);
  770. ^
  771. compile input_p2p.cpp
  772. compile input_teen.cpp
  773. compile input_udp.cpp
  774. compile ip_ban.cpp
  775. compile item.cpp
  776. compile item_addon.cpp
  777. In file included from input_auth.cpp:7:0:
  778. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  779. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  780. *((sh_int *) a) = ind;
  781. ^
  782. protocol.h: In function 'const char* encode_4bytes(int)':
  783. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  784. *((int *) a) = ind;
  785. ^
  786. input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, con st char*, char*)':
  787. input_auth.cpp:463:8: warning: unused variable 'last' [-Wunused-variable]
  788. char *last = 0;
  789. ^
  790. compile item_attribute.cpp
  791. In file included from input_main.cpp:9:0:
  792. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  793. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  794. *((sh_int *) a) = ind;
  795. ^
  796. protocol.h: In function 'const char* encode_4bytes(int)':
  797. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  798. *((int *) a) = ind;
  799. ^
  800. compile item_manager.cpp
  801. compile item_manager_idrange.cpp
  802. compile locale.cpp
  803. In file included from input_login.cpp:13:0:
  804. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  805. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  806. *((sh_int *) a) = ind;
  807. ^
  808. protocol.h: In function 'const char* encode_4bytes(int)':
  809. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  810. *((int *) a) = ind;
  811. ^
  812. In file included from input_db.cpp:11:0:
  813. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  814. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  815. *((sh_int *) a) = ind;
  816. ^
  817. protocol.h: In function 'const char* encode_4bytes(int)':
  818. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  819. *((int *) a) = ind;
  820. ^
  821. compile locale_service.cpp
  822. compile log.cpp
  823. In file included from item.cpp:8:0:
  824. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  825. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  826. *((sh_int *) a) = ind;
  827. ^
  828. protocol.h: In function 'const char* encode_4bytes(int)':
  829. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  830. *((int *) a) = ind;
  831. ^
  832. In file included from input_teen.cpp:17:0:
  833. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  834. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  835. *((sh_int *) a) = ind;
  836. ^
  837. protocol.h: In function 'const char* encode_4bytes(int)':
  838. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  839. *((int *) a) = ind;
  840. ^
  841. In file included from ../../libthecore/include/stdafx.h:141:0,
  842. from stdafx.h:9,
  843. from item.cpp:1:
  844. belt_inventory_helper.h: In static member function 'static CBeltInventoryHelper: :TGradeUnit CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
  845. ../../libthecore/include/utils.h:143:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  846. #define _countof(_Array) sizeof(*__countof_helper(_Array))
  847. ^
  848. belt_inventory_helper.h:28:16: note: in expansion of macro '_countof'
  849. if (level >= _countof(beltGradeByLevelTable))
  850. ^
  851. In file included from item.cpp:17:0:
  852. item.h: In constructor 'CItem::CItem(DWORD)':
  853. item.h:290:12: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized aft er [-Wreorder]
  854. LPEVENT m_pkRealTimeExpireEvent;
  855. ^
  856. item.h:287:12: warning: 'LPEVENT CItem::m_pkExpireEvent' [-Wreorder]
  857. LPEVENT m_pkExpireEvent;
  858. ^
  859. item.cpp:25:1: warning: when initialized here [-Wreorder]
  860. CItem::CItem(DWORD dwVnum)
  861. ^
  862. item.cpp: In member function 'bool CItem::AddToCharacter(LPCHARACTER, TItemPos)' :
  863. item.cpp:364:7: warning: unused variable 'bWereMine' [-Wunused-variable]
  864. bool bWereMine = this->GetLastOwnerPID() == ch->GetPlayerID();
  865. ^
  866. item.cpp: In function 'const bool CanPutIntoRing(LPITEM, LPITEM)':
  867. item.cpp:1769:14: warning: unused variable 'vnum' [-Wunused-variable]
  868. const DWORD vnum = item->GetVnum();
  869. ^
  870. input_teen.cpp: In member function 'bool CInputTeen::ProcessHandshake(LPDESC, co nst void*, size_t, int&)':
  871. input_teen.cpp:59:17: warning: dereferencing type-punned pointer will break stri ct-aliasing rules [-Wstrict-aliasing]
  872. *((DWORD *) buf) = handshake ^ HANDSHAKE_XOR;
  873. ^
  874. item.cpp: In member function 'bool CItem::CanPutInto(LPITEM)':
  875. item.cpp:1802:53: warning: comparison between signed and unsigned integer expres sions [-Wsign-compare]
  876. for (int i = 0; i < sizeof(infos) / sizeof(infos[0]); i++)
  877. ^
  878. item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
  879. item.cpp:2058:21: warning: comparison between signed and unsigned integer expres sions [-Wsign-compare]
  880. if (remain_sec == duration)
  881. ^
  882. item.cpp:2060:36: warning: comparison between signed and unsigned integer expres sions [-Wsign-compare]
  883. if ((given_time + remain_sec) >= duration)
  884. ^
  885. item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
  886. item.cpp:2082:21: warning: comparison between signed and unsigned integer expres sions [-Wsign-compare]
  887. if (remain_sec == duration)
  888. ^
  889. item.cpp: In member function 'int CItem::GetDuration()':
  890. item.cpp:2113:69: warning: array subscript has type 'char' [-Wchar-subscripts]
  891. return GetProto()->aLimits[GetProto()->cLimitTimerBasedOnWearIndex].lValue;
  892. ^
  893. In file included from input_udp.cpp:9:0:
  894. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  895. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  896. *((sh_int *) a) = ind;
  897. ^
  898. protocol.h: In function 'const char* encode_4bytes(int)':
  899. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-a liasing rules [-Wstrict-aliasing]
  900. *((int *) a) = ind;
  901. ^
  902. compile login_data.cpp
  903. item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)' :
  904. item_manager.cpp:607:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  905. for (int i = 0; i < m_vec_item_vnum_range_info.size(); i++)
  906. ^
  907. compile lzo_manager.cpp
  908. compile marriage.cpp
  909. input_main.cpp: In member function 'int CInputMain::Chat(LPCHARACTER, const char *, size_t)':
  910. input_main.cpp:745:7: warning: unused variable 'len_global' [-Wunused-variable]
  911. int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s %s", ki ngdoms[ch->GetEmpire() - 1], chatbuf);
  912. ^
  913. input_p2p.cpp: In member function 'void CInputP2P::OfflineShopBuy(LPDESC, const char*)':
  914. input_p2p.cpp:508:28: warning: unused variable 'p' [-Wunused-variable]
  915. TPacketGGOfflineShopBuy * p = (TPacketGGOfflineShopBuy *)c_pData;
  916. ^
  917. compile messenger_manager.cpp
  918. compile mining.cpp
  919. compile mob_manager.cpp
  920. compile monarch.cpp
  921. compile motion.cpp
  922. compile over9refine.cpp
  923. compile p2p.cpp
  924. compile packet_info.cpp
  925. compile party.cpp
  926. compile passpod.cpp
  927. compile pcbang.cpp
  928. compile matrix_card.cpp
  929. compile polymorph.cpp
  930. compile priv_manager.cpp
  931. compile pvp.cpp
  932. compile questevent.cpp
  933. pvp.cpp: In member function 'bool CPVPManager::CanAttack(LPCHARACTER, LPCHARACTE R)':
  934. pvp.cpp:503:46: warning: suggest parentheses around '&&' within '||' [-Wparenthe ses]
  935. if ( pkChr->GetPKMode() == PK_MODE_PROTECT && pkChr->GetEmpire() == bMapEmpir e ||
  936. ^
  937. compile questlua.cpp
  938. compile questlua_affect.cpp
  939. compile questlua_arena.cpp
  940. compile questlua_ba.cpp
  941. compile questlua_building.cpp
  942. compile questlua_danceevent.cpp
  943. compile questlua_dungeon.cpp
  944. questlua.cpp: In member function 'bool quest::FPartyCheckFlagLt::operator()(LPCH ARACTER)':
  945. questlua.cpp:78:8: warning: 'returnBool' may be used uninitialized in this funct ion [-Wmaybe-uninitialized]
  946. bool returnBool;
  947. ^
  948. compile questlua_forked.cpp
  949. compile questlua_game.cpp
  950. compile questlua_global.cpp
  951. compile questlua_guild.cpp
  952. compile questlua_horse.cpp
  953. compile questlua_pet.cpp
  954. compile questlua_item.cpp
  955. compile questlua_marriage.cpp
  956. compile questlua_mgmt.cpp
  957. compile questlua_monarch.cpp
  958. compile questlua_npc.cpp
  959. compile questlua_oxevent.cpp
  960. compile questlua_party.cpp
  961. questlua_item.cpp: In function 'int quest::item_get_applies(lua_State*)':
  962. questlua_item.cpp:588:22: warning: unused variable 'Key1' [-Wunused-variable]
  963. char Key1[64] = "", Key2[64] = "";
  964. ^
  965. questlua_item.cpp:588:37: warning: unused variable 'Key2' [-Wunused-variable]
  966. char Key1[64] = "", Key2[64] = "";
  967. ^
  968. questlua_item.cpp: In function 'int quest::item_equip_selected(lua_State*)':
  969. questlua_item.cpp:991:36: warning: NULL used in arithmetic [-Wpointer-arith]
  970. if (equipped->GetVnum() != NULL || item->IsEquipped())
  971. ^
  972. compile questlua_pc.cpp
  973. compile questlua_quest.cpp
  974. questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
  975. questlua_npc.cpp:294:18: warning: unused variable 'q' [-Wunused-variable]
  976. CQuestManager& q = CQuestManager::instance();
  977. ^
  978. questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
  979. questlua_npc.cpp:310:18: warning: unused variable 'q' [-Wunused-variable]
  980. CQuestManager& q = CQuestManager::instance();
  981. ^
  982. questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
  983. questlua_npc.cpp:325:18: warning: unused variable 'q' [-Wunused-variable]
  984. CQuestManager& q = CQuestManager::instance();
  985. ^
  986. questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
  987. questlua_npc.cpp:341:18: warning: unused variable 'q' [-Wunused-variable]
  988. CQuestManager& q = CQuestManager::instance();
  989. ^
  990. compile questlua_target.cpp
  991. questlua_pc.cpp: In function 'int quest::pc_give_item_from_special_item_group(lu a_State*)':
  992. questlua_pc.cpp:400:38: warning: passing NULL to non-pointer argument 1 of 'std: :vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_ty pe&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::v alue_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CI tem*>]' [-Wconversion-null]
  993. std::vector <LPITEM> item_gets(NULL);
  994. ^
  995. compile questmanager.cpp
  996. compile questnpc.cpp
  997. compile questpc.cpp
  998. compile refine.cpp
  999. compile regen.cpp
  1000. compile safebox.cpp
  1001. compile sectree.cpp
  1002. compile sectree_manager.cpp
  1003. compile sequence.cpp
  1004. questnpc.cpp: In member function 'bool quest::NPC::HandleEvent(quest::PC&, int)' :
  1005. questnpc.cpp:500:11: warning: unused variable 'pPC' [-Wunused-variable]
  1006. PC * pPC = CQuestManager::instance().GetPC(pc.GetID());
  1007. ^
  1008. compile shop.cpp
  1009. compile skill.cpp
  1010. compile start_position.cpp
  1011. compile target.cpp
  1012. compile text_file_loader.cpp
  1013. sectree_manager.cpp: In member function 'void SECTREE_MANAGER::LoadDungeon(int, const char*)':
  1014. sectree_manager.cpp:339:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  1015. if (buf[0] == '#' || buf[0] == '/' && buf[1] == '/')
  1016. ^
  1017. compile trigger.cpp
  1018. compile utils.cpp
  1019. compile vector.cpp
  1020. compile war_map.cpp
  1021. utils.cpp: In function 'bool WildCaseCmp(const char*, const char*)':
  1022. utils.cpp:248:20: warning: NULL used in arithmetic [-Wpointer-arith]
  1023. if (NULL == w[1])
  1024. ^
  1025. utils.cpp:260:18: warning: NULL used in arithmetic [-Wpointer-arith]
  1026. if (NULL == *s)
  1027. ^
  1028. utils.cpp:274:18: warning: NULL used in arithmetic [-Wpointer-arith]
  1029. if (NULL == *w)
  1030. ^
  1031. shop.cpp: In member function 'virtual bool CShop::IsSellingItem(DWORD)':
  1032. shop.cpp:554:33: warning: comparison between signed and unsigned integer express ions [-Wsign-compare]
  1033. if (m_itemVector[i].itemid == itemID)
  1034. ^
  1035. compile wedding.cpp
  1036. compile xmas_event.cpp
  1037. compile panama.cpp
  1038. compile version.cpp
  1039. compile threeway_war.cpp
  1040. trigger.cpp: In member function 'CHARACTER* FuncFindMobVictim::GetVictim()':
  1041. trigger.cpp:141:24: warning: suggest parentheses around '&&' within '||' [-Wpare ntheses]
  1042. if (m_pkChrBuilding && m_pkChr->GetHP() * 2 > m_pkChr->GetMaxHP() || !m_pkCh rVictim)
  1043. ^
  1044. compile map_location.cpp
  1045. compile auth_brazil.cpp
  1046. compile BlueDragon.cpp
  1047. compile BlueDragon_Binder.cpp
  1048. compile DragonLair.cpp
  1049. compile questlua_dragonlair.cpp
  1050. compile HackShield.cpp
  1051. compile HackShield_Impl.cpp
  1052. compile char_hackshield.cpp
  1053. compile skill_power.cpp
  1054. compile affect.cpp
  1055. compile SpeedServer.cpp
  1056. compile questlua_speedserver.cpp
  1057. In file included from SpeedServer.cpp:3:0:
  1058. SpeedServer.h: In member function 'bool HME::operator<(const HME&) const':
  1059. SpeedServer.h:43:25: warning: suggest parentheses around '&&' within '||' [-Wpar entheses]
  1060. || (hour==rhs.hour) && (min<rhs.min);
  1061. ^
  1062. SpeedServer.h: In member function 'bool Date::operator<(const Date&) const':
  1063. SpeedServer.h:68:25: warning: suggest parentheses around '&&' within '||' [-Wpar entheses]
  1064. || (year==rhs.year) && (mon<rhs.mon)
  1065. ^
  1066. SpeedServer.h:69:43: warning: suggest parentheses around '&&' within '||' [-Wpar entheses]
  1067. || (year==rhs.year) && (mon==rhs.mon) && (day<rhs.day);
  1068. ^
  1069. compile XTrapManager.cpp
  1070. compile auction_manager.cpp
  1071. compile FileMonitor_FreeBSD.cpp
  1072. compile ClientPackageCryptInfo.cpp
  1073. In file included from questlua_speedserver.cpp:2:0:
  1074. SpeedServer.h: In member function 'bool HME::operator<(const HME&) const':
  1075. SpeedServer.h:43:25: warning: suggest parentheses around '&&' within '||' [-Wpar entheses]
  1076. || (hour==rhs.hour) && (min<rhs.min);
  1077. ^
  1078. SpeedServer.h: In member function 'bool Date::operator<(const Date&) const':
  1079. SpeedServer.h:68:25: warning: suggest parentheses around '&&' within '||' [-Wpar entheses]
  1080. || (year==rhs.year) && (mon<rhs.mon)
  1081. ^
  1082. SpeedServer.h:69:43: warning: suggest parentheses around '&&' within '||' [-Wpar entheses]
  1083. || (year==rhs.year) && (mon==rhs.mon) && (day<rhs.day);
  1084. ^
  1085. compile cipher.cpp
  1086. compile buff_on_attributes.cpp
  1087. compile dragon_soul_table.cpp
  1088. In file included from ClientPackageCryptInfo.cpp:2:0:
  1089. ClientPackageCryptInfo.h: In constructor 'CClientPackageCryptInfo::CClientPackag eCryptInfo()':
  1090. ClientPackageCryptInfo.h:50:12: warning: 'CClientPackageCryptInfo::m_pSerialized CryptKeyStream' will be initialized after [-Wreorder]
  1091. BYTE* m_pSerializedCryptKeyStream;
  1092. ^
  1093. ClientPackageCryptInfo.h:48:11: warning: 'int CClientPackageCryptInfo::m_nCryp tKeyPackageCnt' [-Wreorder]
  1094. int m_nCryptKeyPackageCnt;
  1095. ^
  1096. ClientPackageCryptInfo.cpp:9:1: warning: when initialized here [-Wreorder]
  1097. CClientPackageCryptInfo::CClientPackageCryptInfo() : m_pSerializedCryptKeyStrea m(NULL), m_nCryptKeyPackageCnt(0)
  1098. ^
  1099. compile DragonSoul.cpp
  1100. compile group_text_parse_tree.cpp
  1101. compile char_dragonsoul.cpp
  1102. In file included from /usr/include/cryptopp/modes.h:8:0,
  1103. from cipher.cpp:7:
  1104. /usr/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCl eanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::alloc ate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_A lign16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>: :size_type = unsigned int]':
  1105. /usr/include/cryptopp/secblock.h:247:25: required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = C ryptoPP::AllocatorWithCleanup<unsigned char>; CryptoPP::SecBlock<T, A>::size_typ e = unsigned int]'
  1106. /usr/include/cryptopp/algparam.h:17:2: required from here
  1107. /usr/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in t his scope, and no declarations were found by argument-dependent lookup at the po int of instantiation [-fpermissive]
  1108. CheckSize(n);
  1109. ^
  1110. /usr/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'Cr yptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
  1111. /usr/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
  1112. /usr/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCl eanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::alloc ate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Al ign16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>:: size_type = unsigned int]':
  1113. /usr/include/cryptopp/secblock.h:247:25: required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = C ryptoPP::AllocatorWithCleanup<unsigned char, true>; CryptoPP::SecBlock<T, A>::si ze_type = unsigned int]'
  1114. /usr/include/cryptopp/modes.h:63:34: required from here
  1115. /usr/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in t his scope, and no declarations were found by argument-dependent lookup at the po int of instantiation [-fpermissive]
  1116. /usr/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'Cr yptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
  1117. /usr/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
  1118. /usr/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCl eanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::alloc ate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Ali gn16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::si ze_type = unsigned int]':
  1119. /usr/include/cryptopp/secblock.h:249:29: required from 'CryptoPP::SecBlock<T, A>::SecBlock(const CryptoPP::SecBlock<T, A>&) [with T = unsigned int; A = Crypto PP::AllocatorWithCleanup<unsigned int, true>]'
  1120. /usr/include/cryptopp/modarith.h:122:20: required from here
  1121. /usr/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in t his scope, and no declarations were found by argument-dependent lookup at the po int of instantiation [-fpermissive]
  1122. /usr/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'Cr yptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
  1123. /usr/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
  1124. /usr/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCl eanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::alloc ate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Al ign16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::s ize_type = unsigned int]':
  1125. /usr/include/cryptopp/secblock.h:247:25: required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned int; A = Cr yptoPP::AllocatorWithCleanup<unsigned int>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
  1126. /usr/include/cryptopp/rc5.h:22:27: required from 'CryptoPP::BlockCipherFinal<D IR, BASE>::BlockCipherFinal() [with CryptoPP::CipherDir DIR = (CryptoPP::CipherD ir)0u; BASE = CryptoPP::RC5::Enc]'
  1127. /usr/include/cryptopp/misc.h:82:7: required from 'CryptoPP::CipherModeFinalTem plate_CipherHolder<CIPHER, BASE>::CipherModeFinalTemplate_CipherHolder(const byt e*, size_t, const byte*) [with CIPHER = CryptoPP::BlockCipherFinal<(CryptoPP::Ci pherDir)0u, CryptoPP::RC5::Enc>; BASE = CryptoPP::ConcretePolicyHolder<CryptoPP: :Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP ::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> > >; byte = unsigned c har; size_t = unsigned int]'
  1128. cipher.cpp:88:64: required from 'CryptoPP::SymmetricCipher* BlockCipherDetail< T>::CreateEncoder(const byte*, size_t, const byte*) const [with T = CryptoPP::RC 5; byte = unsigned char; size_t = unsigned int]'
  1129. cipher.cpp:398:1: required from here
  1130. /usr/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in t his scope, and no declarations were found by argument-dependent lookup at the po int of instantiation [-fpermissive]
  1131. /usr/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'Cr yptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
  1132. /usr/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
  1133. compile questlua_dragonsoul.cpp
  1134. dragon_soul_table.cpp: In member function 'bool DragonSoulTable::ReadAdditionalA pplys()':
  1135. dragon_soul_table.cpp:223:48: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1136. for (int i = 0; i < m_vecDragonSoulNames.size(); i++)
  1137. ^
  1138. dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckApplyNumSe ttings()':
  1139. dragon_soul_table.cpp:283:49: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1140. for (int i = 0; i < m_vecDragonSoulTypes.size(); i++)
  1141. ^
  1142. dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckWeightTabl es()':
  1143. dragon_soul_table.cpp:311:49: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1144. for (int i = 0; i < m_vecDragonSoulTypes.size(); i++)
  1145. ^
  1146. dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineGrad eTables()':
  1147. dragon_soul_table.cpp:343:49: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1148. for (int i = 0; i < m_vecDragonSoulTypes.size(); i++)
  1149. ^
  1150. dragon_soul_table.cpp:372:40: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1151. for (int k = 0; k < vec_probs.size(); k++)
  1152. ^
  1153. dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStep Tables()':
  1154. dragon_soul_table.cpp:397:49: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1155. for (int i = 0; i < m_vecDragonSoulTypes.size(); i++)
  1156. ^
  1157. dragon_soul_table.cpp:427:40: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1158. for (int k = 0; k < vec_probs.size(); k++)
  1159. ^
  1160. dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStre ngthTables()':
  1161. dragon_soul_table.cpp:453:48: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1162. for (int i = 0; i < m_vecDragonSoulTypes.size(); i++)
  1163. ^
  1164. dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonHear tExtTables()':
  1165. dragon_soul_table.cpp:494:48: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1166. for (int i = 0; i < m_vecDragonSoulTypes.size(); i++)
  1167. ^
  1168. dragon_soul_table.cpp:513:43: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1169. for (int k = 0; k < vec_chargings.size(); k++)
  1170. ^
  1171. dragon_soul_table.cpp:522:39: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1172. for (int k = 0; k < vec_probs.size(); k++)
  1173. ^
  1174. dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonSoul ExtTables()':
  1175. dragon_soul_table.cpp:545:48: warning: comparison between signed and unsigned in teger expressions [-Wsign-compare]
  1176. for (int i = 0; i < m_vecDragonSoulTypes.size(); i++)
  1177. ^
  1178. In file included from group_text_parse_tree.cpp:3:0:
  1179. group_text_parse_tree.h: In constructor 'CGroupTextParseTreeLoader::CGroupTextPa rseTreeLoader()':
  1180. group_text_parse_tree.h:93:13: warning: 'CGroupTextParseTreeLoader::m_dwcurLineI ndex' will be initialized after [-Wreorder]
  1181. DWORD m_dwcurLineIndex;
  1182. ^
  1183. group_text_parse_tree.h:91:18: warning: 'CGroupNode* CGroupTextParseTreeLoader ::m_pRootGroupNode' [-Wreorder]
  1184. CGroupNode * m_pRootGroupNode;
  1185. ^
  1186. group_text_parse_tree.cpp:5:1: warning: when initialized here [-Wreorder]
  1187. CGroupTextParseTreeLoader::CGroupTextParseTreeLoader()
  1188. ^
  1189. group_text_parse_tree.cpp: In member function 'bool CGroupTextParseTreeLoader::L oadGroup(CGroupNode*)':
  1190. group_text_parse_tree.cpp:99:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1191. for (int i = 1; i < stTokenVector.size(); i++)
  1192. ^
  1193. group_text_parse_tree.cpp: In member function 'bool CGroupNode::GetRow(int, cons t CGroupNode::CGroupNodeRow**) const':
  1194. group_text_parse_tree.cpp:206:29: warning: comparison between signed and unsigne d integer expressions [-Wsign-compare]
  1195. if (idx >= m_map_rows.size())
  1196. ^
  1197. buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffVa lue(BYTE)':
  1198. buff_on_attributes.cpp:113:8: warning: unused variable 'old_value' [-Wunused-var iable]
  1199. int old_value = sum_of_attr_value * m_bBuffValue / 100;
  1200. ^
  1201. buff_on_attributes.cpp:114:8: warning: unused variable 'new_value' [-Wunused-var iable]
  1202. int new_value = sum_of_attr_value * bNewValue / 100;
  1203. ^
  1204. gmake: *** [OBJDIR/cipher.o] Error 1
  1205. gmake: *** Waiting for unfinished jobs....
  1206. DragonSoul.cpp: In function 'int Gamble(std::vector<float>&)':
  1207. DragonSoul.cpp:19:37: warning: comparison between signed and unsigned integer ex pressions [-Wsign-compare]
  1208. for (int i = 0; i < vec_probs.size(); i++)
  1209. ^
  1210. DragonSoul.cpp:25:41: warning: comparison between signed and unsigned integer ex pressions [-Wsign-compare]
  1211. for (int idx = 0; idx < vec_probs.size(); idx++)
  1212. ^
  1213. DragonSoul.cpp: In member function 'bool DSManager::RefreshItemAttributes(LPITEM )':
  1214. DragonSoul.cpp:203:49: warning: comparison between signed and unsigned integer e xpressions [-Wsign-compare]
  1215. for (int j = 0; j < vec_addtional_applys.size(); j++)
  1216. ^
  1217. DragonSoul.cpp: In member function 'bool DSManager::PutAttributes(LPITEM)':
  1218. DragonSoul.cpp:273:49: warning: comparison between signed and unsigned integer e xpressions [-Wsign-compare]
  1219. for (int i = 0; i < vec_addtional_applys.size(); i++)
  1220. ^
  1221. DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(LPCHARACT ER, LPITEM, LPITEM)':
  1222. DragonSoul.cpp:350:8: warning: unused variable 'sum' [-Wunused-variable]
  1223. float sum = 0.f;
  1224. ^
  1225. DragonSoul.cpp: In member function 'bool DSManager::PullOut(LPCHARACTER, TItemPo s, CItem*&, LPITEM)':
  1226. DragonSoul.cpp:435:9: warning: unused variable 'dwVnum' [-Wunused-variable]
  1227. DWORD dwVnum = pItem->GetVnum();
  1228. ^
  1229. DragonSoul.cpp:469:51: warning: format '%d' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]
  1230. sprintf(buf, "dice(%d) prob(%d)", fDice, fProb);
  1231. ^
  1232. DragonSoul.cpp:469:51: warning: format '%d' expects argument of type 'int', but argument 4 has type 'double' [-Wformat=]
  1233. DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(LPCHARACTER, T ItemPos (&)[15])':
  1234. DragonSoul.cpp:555:8: warning: unused variable 'prob_sum' [-Wunused-variable]
  1235. float prob_sum;
  1236. ^
  1237. DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(LPCHARACTER, TI temPos (&)[15])':
  1238. DragonSoul.cpp:763:8: warning: unused variable 'sum' [-Wunused-variable]
  1239. float sum = 0.f;
  1240. ^
  1241. char_dragonsoul.cpp: In member function 'bool CHARACTER::DragonSoul_ActivateDeck (int)':
  1242. char_dragonsoul.cpp:91:1: warning: control reaches end of non-void function [-Wr eturn-type]
  1243. }
  1244. ^
  1245. root@:/usr/src/Server/game/src #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement