Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.21 KB | None | 0 0
  1. 2266500000,
  2. ^
  3. constants.cpp:323:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  4. 2268000000,
  5. ^
  6. constants.cpp:324:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  7. 2269500000,
  8. ^
  9. constants.cpp:325:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  10. 2271000000,
  11. ^
  12. constants.cpp:326:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  13. 2272500000, // 135
  14. ^
  15. constants.cpp:327:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  16. 2274000000,
  17. ^
  18. constants.cpp:328:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  19. 2275500000,
  20. ^
  21. constants.cpp:329:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  22. 2277000000,
  23. ^
  24. constants.cpp:330:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  25. 2278500000,
  26. ^
  27. constants.cpp:331:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  28. 2280000000, // 140
  29. ^
  30. constants.cpp:332:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  31. 2281800000,
  32. ^
  33. constants.cpp:333:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  34. 2283600000,
  35. ^
  36. constants.cpp:334:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  37. 2285400000,
  38. ^
  39. constants.cpp:335:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  40. 2287200000,
  41. ^
  42. constants.cpp:336:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  43. 2289000000, // 145
  44. ^
  45. constants.cpp:337:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  46. 2290800000,
  47. ^
  48. constants.cpp:338:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  49. 2292600000,
  50. ^
  51. constants.cpp:339:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  52. 2294400000,
  53. ^
  54. constants.cpp:340:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  55. 2296200000,
  56. ^
  57. constants.cpp:341:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  58. 2298000000, // 150
  59. ^
  60. constants.cpp:342:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  61. 2299800000,
  62. ^
  63. constants.cpp:343:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  64. 2301600000,
  65. ^
  66. constants.cpp:344:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  67. 2303400000,
  68. ^
  69. constants.cpp:345:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  70. 2305200000,
  71. ^
  72. constants.cpp:346:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  73. 2307000000, // 155
  74. ^
  75. constants.cpp:347:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  76. 2308800000,
  77. ^
  78. constants.cpp:348:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  79. 2310600000,
  80. ^
  81. constants.cpp:349:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  82. 2312400000,
  83. ^
  84. constants.cpp:350:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  85. 2314200000,
  86. ^
  87. constants.cpp:351:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  88. 2316000000, // 160
  89. ^
  90. constants.cpp:352:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  91. 2317800000,
  92. ^
  93. constants.cpp:353:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  94. 2319600000,
  95. ^
  96. constants.cpp:354:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  97. 2321400000,
  98. ^
  99. constants.cpp:355:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  100. 2323200000,
  101. ^
  102. constants.cpp:356:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  103. 2325000000, // 165
  104. ^
  105. constants.cpp:357:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  106. 2326800000,
  107. ^
  108. constants.cpp:358:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  109. 2328600000,
  110. ^
  111. constants.cpp:359:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  112. 2330400000,
  113. ^
  114. constants.cpp:360:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  115. 2332200000,
  116. ^
  117. constants.cpp:361:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  118. 2334000000, // 170
  119. ^
  120. constants.cpp:362:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  121. 2335800000,
  122. ^
  123. constants.cpp:363:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  124. 2337600000,
  125. ^
  126. constants.cpp:364:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  127. 2339400000,
  128. ^
  129. constants.cpp:365:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  130. 2341200000,
  131. ^
  132. constants.cpp:366:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  133. 2343000000, // 175
  134. ^
  135. constants.cpp:367:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  136. 2344800000,
  137. ^
  138. constants.cpp:368:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  139. 2346600000,
  140. ^
  141. constants.cpp:369:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  142. 2348400000,
  143. ^
  144. constants.cpp:370:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  145. 2350200000,
  146. ^
  147. constants.cpp:371:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  148. 2352000000, // 180
  149. ^
  150. constants.cpp:372:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  151. 2353800000,
  152. ^
  153. constants.cpp:373:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  154. 2355600000,
  155. ^
  156. constants.cpp:374:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  157. 2357400000,
  158. ^
  159. constants.cpp:375:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  160. 2359200000,
  161. ^
  162. constants.cpp:376:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  163. 2361000000, // 185
  164. ^
  165. constants.cpp:377:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  166. 2362800000,
  167. ^
  168. constants.cpp:378:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  169. 2364600000,
  170. ^
  171. constants.cpp:379:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  172. 2366400000,
  173. ^
  174. constants.cpp:380:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  175. 2368200000,
  176. ^
  177. constants.cpp:381:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  178. 2370000000, // 190
  179. ^
  180. constants.cpp:382:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  181. 2371800000,
  182. ^
  183. constants.cpp:383:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  184. 2373600000,
  185. ^
  186. constants.cpp:384:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  187. 2375400000,
  188. ^
  189. constants.cpp:385:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  190. 2377200000,
  191. ^
  192. constants.cpp:386:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  193. 2379000000, // 195
  194. ^
  195. constants.cpp:387:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  196. 2380800000,
  197. ^
  198. constants.cpp:388:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  199. 2382600000,
  200. ^
  201. constants.cpp:389:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  202. 2384400000,
  203. ^
  204. constants.cpp:390:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  205. 2386200000,
  206. ^
  207. constants.cpp:391:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  208. 2388000000, // 200
  209. ^
  210. constants.cpp:392:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  211. 2389800000,
  212. ^
  213. constants.cpp:393:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  214. 2391600000,
  215. ^
  216. constants.cpp:394:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  217. 2393400000,
  218. ^
  219. constants.cpp:395:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  220. 2395200000,
  221. ^
  222. constants.cpp:396:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  223. 2397000000, // 205
  224. ^
  225. constants.cpp:397:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  226. 2398800000,
  227. ^
  228. constants.cpp:398:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  229. 2400600000,
  230. ^
  231. constants.cpp:399:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  232. 2402400000,
  233. ^
  234. constants.cpp:400:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  235. 2404200000,
  236. ^
  237. constants.cpp:401:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  238. 2406000000, // 210
  239. ^
  240. constants.cpp:402:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  241. 2407800000,
  242. ^
  243. constants.cpp:403:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  244. 2409600000,
  245. ^
  246. constants.cpp:404:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  247. 2411400000,
  248. ^
  249. constants.cpp:405:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  250. 2413200000,
  251. ^
  252. constants.cpp:406:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  253. 2415000000, // 215
  254. ^
  255. constants.cpp:407:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  256. 2416800000,
  257. ^
  258. constants.cpp:408:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  259. 2418600000,
  260. ^
  261. constants.cpp:409:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  262. 2420400000,
  263. ^
  264. constants.cpp:410:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  265. 2422200000,
  266. ^
  267. constants.cpp:411:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  268. 2424000000, // 220
  269. ^
  270. constants.cpp:412:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  271. 2425800000,
  272. ^
  273. constants.cpp:413:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  274. 2427600000,
  275. ^
  276. constants.cpp:414:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  277. 2429400000,
  278. ^
  279. constants.cpp:415:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  280. 2431200000,
  281. ^
  282. constants.cpp:416:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  283. 2433000000, // 225
  284. ^
  285. constants.cpp:417:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  286. 2434800000,
  287. ^
  288. constants.cpp:418:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  289. 2436600000,
  290. ^
  291. constants.cpp:419:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  292. 2438400000,
  293. ^
  294. constants.cpp:420:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  295. 2440200000,
  296. ^
  297. constants.cpp:421:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  298. 2442000000, // 230
  299. ^
  300. constants.cpp:422:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  301. 2443800000,
  302. ^
  303. constants.cpp:423:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  304. 2445600000,
  305. ^
  306. constants.cpp:424:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  307. 2447400000,
  308. ^
  309. constants.cpp:425:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  310. 2449200000,
  311. ^
  312. constants.cpp:426:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  313. 2451000000, // 235
  314. ^
  315. constants.cpp:427:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  316. 2452800000,
  317. ^
  318. constants.cpp:428:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  319. 2454600000,
  320. ^
  321. constants.cpp:429:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  322. 2456400000,
  323. ^
  324. constants.cpp:430:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  325. 2458200000,
  326. ^
  327. constants.cpp:431:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  328. 2460000000, // 240
  329. ^
  330. constants.cpp:432:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  331. 2461800000,
  332. ^
  333. constants.cpp:433:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  334. 2463600000,
  335. ^
  336. constants.cpp:434:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  337. 2465400000,
  338. ^
  339. constants.cpp:435:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  340. 2467200000,
  341. ^
  342. constants.cpp:436:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  343. 2469000000, // 245
  344. ^
  345. constants.cpp:437:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  346. 2470800000,
  347. ^
  348. constants.cpp:438:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  349. 2472600000,
  350. ^
  351. constants.cpp:439:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  352. 2474400000,
  353. ^
  354. constants.cpp:440:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  355. 2478000000,
  356. ^
  357. constants.cpp:441:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  358. 2500000000, // 250
  359. ^
  360. constants.cpp:442:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  361. 2500000000,
  362. ^
  363. constants.cpp:443:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  364. 2500000000,
  365. ^
  366. constants.cpp:444:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  367. 2500000000,
  368. ^
  369. constants.cpp:445:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  370. 2500000000,
  371. ^
  372. constants.cpp:446:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  373. 2500000000, // 255
  374. ^
  375. cube.cpp: In function 'bool Cube_make(LPCHARACTER)':
  376. cube.cpp:552:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  377. if (ch->GetGold() < cube_proto->gold)
  378. ^
  379. cube.cpp: In function 'void Cube_MakeCubeInformationText()':
  380. cube.cpp:724:16: warning: unused variable 'npcVNUM' [-Wunused-variable]
  381. const DWORD& npcVNUM = iter->first;
  382. ^
  383. cube.cpp: In function 'bool Cube_InformationInitialize()':
  384. cube.cpp:791:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  385. for (int i = 0; i < s_cube_proto.size(); ++i)
  386. ^
  387. compile dungeon.cpp
  388. compile empire_text_convert.cpp
  389. compile entity.cpp
  390. compile entity_view.cpp
  391. compile event.cpp
  392. config.cpp: In function 'void config_init(const string&)':
  393. config.cpp:439:22: warning: NULL used in arithmetic [-Wpointer-arith]
  394. if (NULL != line[0])
  395. ^
  396. config.cpp:463:22: warning: NULL used in arithmetic [-Wpointer-arith]
  397. if (NULL != line[0])
  398. ^
  399. config.cpp:487:22: warning: NULL used in arithmetic [-Wpointer-arith]
  400. if (NULL != line[0])
  401. ^
  402. config.cpp:509:17: warning: unused variable 'line' [-Wunused-variable]
  403. const char * line = two_arguments(value_string, openid_host, sizeof(openid_host), openid_uri, sizeof(openid_uri));
  404. ^
  405. compile event_queue.cpp
  406. compile exchange.cpp
  407. compile file_loader.cpp
  408. compile fishing.cpp
  409. compile gm.cpp
  410. compile guild.cpp
  411. In file included from desc_manager.cpp:10:0:
  412. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  413. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  414. *((sh_int *) a) = ind;
  415. ^
  416. protocol.h: In function 'const char* encode_4bytes(int)':
  417. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  418. *((int *) a) = ind;
  419. ^
  420. compile guild_manager.cpp
  421. desc_manager.cpp: In member function 'DWORD DESC_MANAGER::CreateHandshake()':
  422. desc_manager.cpp:135:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  423. *(DWORD *) (crc_buf ) = val;
  424. ^
  425. gm.cpp: In function 'BYTE gm_new_get_level(const char*, const char*, const char*)':
  426. gm.cpp:69:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  427. if ( LC_IsEurope() && !LC_IsTaiwan() || LC_IsSingapore() )
  428. ^
  429. In file included from desc_p2p.cpp:3:0:
  430. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  431. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  432. *((sh_int *) a) = ind;
  433. ^
  434. protocol.h: In function 'const char* encode_4bytes(int)':
  435. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  436. *((int *) a) = ind;
  437. ^
  438. compile guild_war.cpp
  439. compile horse_rider.cpp
  440. cmd_gm.cpp: In function 'void do_set_stat(LPCHARACTER, const char*, int, int)':
  441. cmd_gm.cpp:4077:17: warning: NULL used in arithmetic [-Wpointer-arith]
  442. if (*szName == NULL || *szChangeAmount == '\0')
  443. ^
  444. compile horsename_manager.cpp
  445. cmd_gm.cpp: In function 'void do_mob_ld(LPCHARACTER, const char*, int, int)':
  446. cmd_gm.cpp:869:6: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  447. dir);
  448. ^
  449. cmd_gm.cpp:869:6: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  450. compile input.cpp
  451. compile input_auth.cpp
  452. compile input_db.cpp
  453. In file included from desc_client.cpp:7:0:
  454. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  455. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  456. *((sh_int *) a) = ind;
  457. ^
  458. protocol.h: In function 'const char* encode_4bytes(int)':
  459. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  460. *((int *) a) = ind;
  461. ^
  462. compile input_login.cpp
  463. compile input_main.cpp
  464. compile input_p2p.cpp
  465. cmd_gm.cpp: In function 'void do_use_item(LPCHARACTER, const char*, int, int)':
  466. cmd_gm.cpp:4832:41: warning: 'cell' may be used uninitialized in this function [-Wmaybe-uninitialized]
  467. LPITEM item = ch->GetInventoryItem(cell);
  468. ^
  469. compile input_teen.cpp
  470. desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
  471. desc_client.cpp:299:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  472. if (fForce || m_tLastChannelStatusUpdateTime+CHANNELSTATUS_UPDATE_PERIOD < t) {
  473. ^
  474. compile input_udp.cpp
  475. compile ip_ban.cpp
  476. compile item.cpp
  477. compile item_addon.cpp
  478. compile item_attribute.cpp
  479. In file included from input_auth.cpp:7:0:
  480. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  481. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  482. *((sh_int *) a) = ind;
  483. ^
  484. protocol.h: In function 'const char* encode_4bytes(int)':
  485. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  486. *((int *) a) = ind;
  487. ^
  488. compile item_manager.cpp
  489. input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
  490. input_auth.cpp:467:8: warning: unused variable 'last' [-Wunused-variable]
  491. char *last = 0;
  492. ^
  493. compile item_manager_idrange.cpp
  494. compile locale.cpp
  495. input_main.cpp:108:2: error: #endif without #if
  496. #endif
  497. ^
  498. compile locale_service.cpp
  499. In file included from input_login.cpp:13:0:
  500. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  501. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  502. *((sh_int *) a) = ind;
  503. ^
  504. protocol.h: In function 'const char* encode_4bytes(int)':
  505. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  506. *((int *) a) = ind;
  507. ^
  508. In file included from input_db.cpp:11:0:
  509. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  510. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  511. *((sh_int *) a) = ind;
  512. ^
  513. protocol.h: In function 'const char* encode_4bytes(int)':
  514. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  515. *((int *) a) = ind;
  516. ^
  517. compile log.cpp
  518. compile login_data.cpp
  519. In file included from input_main.cpp:9:0:
  520. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  521. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  522. *((sh_int *) a) = ind;
  523. ^
  524. protocol.h: In function 'const char* encode_4bytes(int)':
  525. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  526. *((int *) a) = ind;
  527. ^
  528. In file included from input_teen.cpp:17:0:
  529. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  530. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  531. *((sh_int *) a) = ind;
  532. ^
  533. protocol.h: In function 'const char* encode_4bytes(int)':
  534. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  535. *((int *) a) = ind;
  536. ^
  537. In file included from input_udp.cpp:9:0:
  538. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  539. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  540. *((sh_int *) a) = ind;
  541. ^
  542. protocol.h: In function 'const char* encode_4bytes(int)':
  543. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  544. *((int *) a) = ind;
  545. ^
  546. input_teen.cpp: In member function 'bool CInputTeen::ProcessHandshake(LPDESC, const void*, size_t, int&)':
  547. input_teen.cpp:59:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  548. *((DWORD *) buf) = handshake ^ HANDSHAKE_XOR;
  549. ^
  550. compile lzo_manager.cpp
  551. compile marriage.cpp
  552. compile matrix_card.cpp
  553. compile messenger_manager.cpp
  554. compile mining.cpp
  555. compile mob_manager.cpp
  556. In file included from item.cpp:8:0:
  557. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  558. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  559. *((sh_int *) a) = ind;
  560. ^
  561. protocol.h: In function 'const char* encode_4bytes(int)':
  562. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  563. *((int *) a) = ind;
  564. ^
  565. compile monarch.cpp
  566. compile motion.cpp
  567. In file included from ../../libthecore/include/stdafx.h:141:0,
  568. from stdafx.h:9,
  569. from item.cpp:1:
  570. belt_inventory_helper.h: In static member function 'static CBeltInventoryHelper::TGradeUnit CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
  571. ../../libthecore/include/utils.h:143:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  572. #define _countof(_Array) sizeof(*__countof_helper(_Array))
  573. ^
  574. belt_inventory_helper.h:28:16: note: in expansion of macro '_countof'
  575. if (level >= _countof(beltGradeByLevelTable))
  576. ^
  577. In file included from item.cpp:17:0:
  578. item.h: In constructor 'CItem::CItem(DWORD)':
  579. item.h:290:12: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after [-Wreorder]
  580. LPEVENT m_pkRealTimeExpireEvent;
  581. ^
  582. item.h:287:12: warning: 'LPEVENT CItem::m_pkExpireEvent' [-Wreorder]
  583. LPEVENT m_pkExpireEvent;
  584. ^
  585. item.cpp:25:1: warning: when initialized here [-Wreorder]
  586. CItem::CItem(DWORD dwVnum)
  587. ^
  588. item.cpp: In member function 'bool CItem::AddToCharacter(LPCHARACTER, TItemPos)':
  589. item.cpp:364:7: warning: unused variable 'bWereMine' [-Wunused-variable]
  590. bool bWereMine = this->GetLastOwnerPID() == ch->GetPlayerID();
  591. ^
  592. item.cpp: In function 'const bool CanPutIntoRing(LPITEM, LPITEM)':
  593. item.cpp:1769:14: warning: unused variable 'vnum' [-Wunused-variable]
  594. const DWORD vnum = item->GetVnum();
  595. ^
  596. item.cpp: In member function 'bool CItem::CanPutInto(LPITEM)':
  597. item.cpp:1802:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  598. for (int i = 0; i < sizeof(infos) / sizeof(infos[0]); i++)
  599. ^
  600. item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
  601. item.cpp:2058:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  602. if (remain_sec == duration)
  603. ^
  604. item.cpp:2060:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  605. if ((given_time + remain_sec) >= duration)
  606. ^
  607. item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
  608. item.cpp:2082:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  609. if (remain_sec == duration)
  610. ^
  611. item.cpp: In member function 'int CItem::GetDuration()':
  612. item.cpp:2113:69: warning: array subscript has type 'char' [-Wchar-subscripts]
  613. return GetProto()->aLimits[GetProto()->cLimitTimerBasedOnWearIndex].lValue;
  614. ^
  615. item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
  616. item_manager.cpp:607:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  617. for (int i = 0; i < m_vec_item_vnum_range_info.size(); i++)
  618. ^
  619. input_p2p.cpp: In member function 'void CInputP2P::OfflineShopBuy(LPDESC, const char*)':
  620. input_p2p.cpp:505:28: warning: unused variable 'p' [-Wunused-variable]
  621. TPacketGGOfflineShopBuy * p = (TPacketGGOfflineShopBuy *)c_pData;
  622. ^
  623. compile over9refine.cpp
  624. input_main.cpp: At global scope:
  625. input_main.cpp:55:1: error: 'ifdef' does not name a type
  626. ifdef __SEND_TARGET_INFO__
  627. ^
  628. input_main.cpp: In member function 'int CInputMain::Chat(LPCHARACTER, const char*, size_t)':
  629. input_main.cpp:800:7: warning: unused variable 'len_global' [-Wunused-variable]
  630. int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s %s", kingdoms[ch->GetEmpire() - 1], chatbuf);
  631. ^
  632. compile p2p.cpp
  633. compile packet_info.cpp
  634. compile party.cpp
  635. gmake: *** [OBJDIR/input_main.o] Error 1
  636. gmake: *** Waiting for unfinished jobs....
  637. root@:/usr/src/iosua/Server/game/src # gmake clean
  638. root@:/usr/src/iosua/Server/game/src # gmake -j20
  639. gmake: Warning: File `char.h' has modification time 31314 s in the future
  640. compile BattleArena.cpp
  641. compile FSM.cpp
  642. compile MarkConvert.cpp
  643. compile MarkImage.cpp
  644. compile MarkManager.cpp
  645. compile OXEvent.cpp
  646. compile TrafficProfiler.cpp
  647. compile ani.cpp
  648. compile arena.cpp
  649. compile banword.cpp
  650. compile battle.cpp
  651. compile blend_item.cpp
  652. compile buffer_manager.cpp
  653. compile block_country.cpp
  654. compile building.cpp
  655. compile castle.cpp
  656. compile char.cpp
  657. compile char_affect.cpp
  658. compile char_change_empire.cpp
  659. compile char_battle.cpp
  660. compile char_horse.cpp
  661. compile char_item.cpp
  662. compile char_manager.cpp
  663. compile char_quickslot.cpp
  664. compile char_resist.cpp
  665. compile char_skill.cpp
  666. compile char_state.cpp
  667. compile PetSystem.cpp
  668. char.cpp:7724:3: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  669. return 2500000000;
  670. ^
  671. compile cmd.cpp
  672. compile cmd_emotion.cpp
  673. char_skill.cpp: In member function 'bool CHARACTER::UseSkill(DWORD, LPCHARACTER, bool)':
  674. char_skill.cpp:2489:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  675. if (IsAffectFlag(AFF_TANHWAN_DASH) || pkVictim && pkVictim != this)
  676. ^
  677. char_skill.cpp:2595:96: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  678. if (pkSk->dwVnum == SKILL_MUYEONG || pkSk->IsChargeSkill() && !IsAffectFlag(AFF_TANHWAN_DASH) && !pkVictim)
  679. ^
  680. compile cmd_general.cpp
  681. compile cmd_gm.cpp
  682. compile cmd_oxevent.cpp
  683. compile config.cpp
  684. compile constants.cpp
  685. compile crc32.cpp
  686. compile cube.cpp
  687. compile db.cpp
  688. compile desc.cpp
  689. compile desc_client.cpp
  690. PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
  691. PetSystem.cpp:257:7: warning: unused variable 'bDoMoveAlone' [-Wunused-variable]
  692. bool bDoMoveAlone = true; // ij▒▒▒Ϳ▒ ▒▒▒▒▒▒ ▒▒▒ ▒▒ ȥ▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒ϰ▒▒▒ ▒▒▒▒ -_-;
  693. ^
  694. PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, LPITEM, const char*, bool, DWORD)':
  695. PetSystem.cpp:563:8: warning: unused variable 'petVID' [-Wunused-variable]
  696. DWORD petVID = petActor->Summon(petName, pSummonItem, bSpawnFar);
  697. ^
  698. In file included from ../../libthecore/include/stdafx.h:141:0,
  699. from stdafx.h:9,
  700. from char_item.cpp:1:
  701. belt_inventory_helper.h: In static member function 'static CBeltInventoryHelper::TGradeUnit CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
  702. ../../libthecore/include/utils.h:143:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  703. #define _countof(_Array) sizeof(*__countof_helper(_Array))
  704. ^
  705. belt_inventory_helper.h:28:16: note: in expansion of macro '_countof'
  706. if (level >= _countof(beltGradeByLevelTable))
  707. ^
  708. char_item.cpp: In member function 'bool CHARACTER::UseItemEx(LPITEM, TItemPos)':
  709. 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_type&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CItem*>]' [-Wconversion-null]
  710. std::vector <LPITEM> item_gets(NULL);
  711. ^
  712. 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_type&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CItem*>]' [-Wconversion-null]
  713. std::vector <LPITEM> item_gets(NULL);
  714. ^
  715. char_item.cpp:2429:162: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
  716. 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_IDX));
  717. ^
  718. char_item.cpp:2433:159: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
  719. 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));
  720. ^
  721. char_item.cpp:2445:159: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
  722. sprintf(buf, "No change by item{VN:%d SOC%d:%d}", item->GetVnum(), ITEM_SOCKET_CHARGING_AMOUNT_IDX, item->GetSocket(ITEM_SOCKET_CHARGING_AMOUNT_IDX));
  723. ^
  724. char_item.cpp:2449:156: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
  725. sprintf(buf, "No change by item{VN:%d VAL%d:%d}", item->GetVnum(), ITEM_VALUE_CHARGING_AMOUNT_IDX, item->GetValue(ITEM_VALUE_CHARGING_AMOUNT_IDX));
  726. ^
  727. char_item.cpp:2476:163: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
  728. sprintf(buf, "Increase %ds by item{VN:%d VAL%d:%d}", ret, item->GetVnum(), ITEM_VALUE_CHARGING_AMOUNT_IDX, item->GetValue(ITEM_VALUE_CHARGING_AMOUNT_IDX));
  729. ^
  730. char_item.cpp:2484:155: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
  731. sprintf(buf, "No change by item{VN:%d VAL%d:%d}", item->GetVnum(), ITEM_VALUE_CHARGING_AMOUNT_IDX, item->GetValue(ITEM_VALUE_CHARGING_AMOUNT_IDX));
  732. ^
  733. char_item.cpp:3665:45: warning: passing NULL to non-pointer argument 1 of 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CItem*>]' [-Wconversion-null]
  734. std::vector <LPITEM> item_gets(NULL);
  735. ^
  736. char_item.cpp:3669:53: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  737. if (item->GetVnum() == ITEM_VALENTINE_ROSE && SEX_MALE==GET_SEX(this) ||
  738. ^
  739. char_item.cpp:3689:45: warning: passing NULL to non-pointer argument 1 of 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CItem*>]' [-Wconversion-null]
  740. std::vector <LPITEM> item_gets(NULL);
  741. ^
  742. char_item.cpp:3693:53: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  743. if (item->GetVnum() == ITEM_WHITEDAY_CANDY && SEX_MALE==GET_SEX(this) ||
  744. ^
  745. char_item.cpp:3712:45: warning: passing NULL to non-pointer argument 1 of 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = CItem*; _Alloc = std::allocator<CItem*>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = CItem*; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<CItem*>]' [-Wconversion-null]
  746. std::vector <LPITEM> item_gets(NULL);
  747. ^
  748. compile desc_manager.cpp
  749. char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
  750. char_state.cpp:803:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  751. if (!IsWalking() && !IsRiding())
  752. ^
  753. char_state.cpp:901:17: warning: unused variable 'rider' [-Wunused-variable]
  754. LPCHARACTER rider = GetRider();
  755. ^
  756. char.cpp: In member function 'int CHARACTER::GetPolymorphPoint(BYTE) const':
  757. char.cpp:2962:57: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  758. if (GetJob() == JOB_SHAMAN || GetJob() == JOB_SURA && GetSkillGroup() == 2)
  759. ^
  760. char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
  761. char.cpp:3170:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  762. if (amount < 0 && exp < -amount)
  763. ^
  764. char.cpp: In member function 'void CHARACTER::SetTarget(LPCHARACTER)':
  765. char.cpp:5605:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  766. if (m_pkChrTarget->IsPC() && !m_pkChrTarget->IsPolymorphed() || m_pkChrTarget->GetMaxHP() <= 0)
  767. ^
  768. char.cpp: In member function 'bool CHARACTER::CanSummon(int)':
  769. char.cpp:6791:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  770. return (iLeaderShip >= 20 || iLeaderShip >= 12 && m_dwLastDeadTime + 180 > get_dword_time());
  771. ^
  772. char_battle.cpp: In member function 'void CHARACTER::Reward(bool)':
  773. char_battle.cpp:778:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  774. if (GetLevel() - pkAttacker->GetLevel() >= -10)
  775. ^
  776. compile desc_p2p.cpp
  777. compile dev_log.cpp
  778. compile dungeon.cpp
  779. constants.cpp:291:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  780. 2500000000, // 100
  781. ^
  782. constants.cpp:292:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  783. 2500000000,
  784. ^
  785. constants.cpp:293:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  786. 2500000000,
  787. ^
  788. constants.cpp:294:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  789. 2500000000,
  790. ^
  791. constants.cpp:295:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  792. 2500000000,
  793. ^
  794. constants.cpp:296:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  795. 2500000000, // 105
  796. ^
  797. constants.cpp:297:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  798. 2500000000,
  799. ^
  800. constants.cpp:298:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  801. 2500000000,
  802. ^
  803. constants.cpp:299:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  804. 2500000000,
  805. ^
  806. constants.cpp:300:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  807. 2500000000,
  808. ^
  809. constants.cpp:301:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  810. 2500000000, // 110
  811. ^
  812. constants.cpp:302:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  813. 2500000000,
  814. ^
  815. constants.cpp:303:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  816. 2500000000,
  817. ^
  818. constants.cpp:304:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  819. 2500000000,
  820. ^
  821. constants.cpp:305:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  822. 2500000000,
  823. ^
  824. constants.cpp:306:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  825. 2500000000, // 115
  826. ^
  827. constants.cpp:307:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  828. 2500000000,
  829. ^
  830. constants.cpp:308:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  831. 2500000000,
  832. ^
  833. constants.cpp:309:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  834. 2500000000,
  835. ^
  836. constants.cpp:310:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  837. 2500000000,
  838. ^
  839. constants.cpp:311:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  840. 2500000000, // 120
  841. ^
  842. constants.cpp:312:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  843. 2500000000,
  844. ^
  845. constants.cpp:313:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  846. 2500000000,
  847. ^
  848. constants.cpp:314:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  849. 2500000000,
  850. ^
  851. constants.cpp:315:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  852. 2500000000,
  853. ^
  854. constants.cpp:316:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  855. 2500000000, // 125
  856. ^
  857. constants.cpp:317:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  858. 2500000000,
  859. ^
  860. constants.cpp:318:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  861. 2500000000,
  862. ^
  863. constants.cpp:319:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  864. 2500000000,
  865. ^
  866. constants.cpp:320:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  867. 2500000000,
  868. ^
  869. constants.cpp:321:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  870. 2500000000, // 130
  871. ^
  872. constants.cpp:322:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  873. 2266500000,
  874. ^
  875. constants.cpp:323:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  876. 2268000000,
  877. ^
  878. constants.cpp:324:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  879. 2269500000,
  880. ^
  881. constants.cpp:325:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  882. 2271000000,
  883. ^
  884. constants.cpp:326:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  885. 2272500000, // 135
  886. ^
  887. constants.cpp:327:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  888. 2274000000,
  889. ^
  890. constants.cpp:328:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  891. 2275500000,
  892. ^
  893. constants.cpp:329:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  894. 2277000000,
  895. ^
  896. constants.cpp:330:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  897. 2278500000,
  898. ^
  899. constants.cpp:331:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  900. 2280000000, // 140
  901. ^
  902. constants.cpp:332:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  903. 2281800000,
  904. ^
  905. constants.cpp:333:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  906. 2283600000,
  907. ^
  908. constants.cpp:334:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  909. 2285400000,
  910. ^
  911. constants.cpp:335:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  912. 2287200000,
  913. ^
  914. constants.cpp:336:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  915. 2289000000, // 145
  916. ^
  917. constants.cpp:337:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  918. 2290800000,
  919. ^
  920. constants.cpp:338:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  921. 2292600000,
  922. ^
  923. constants.cpp:339:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  924. 2294400000,
  925. ^
  926. constants.cpp:340:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  927. 2296200000,
  928. ^
  929. constants.cpp:341:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  930. 2298000000, // 150
  931. ^
  932. constants.cpp:342:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  933. 2299800000,
  934. ^
  935. constants.cpp:343:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  936. 2301600000,
  937. ^
  938. constants.cpp:344:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  939. 2303400000,
  940. ^
  941. constants.cpp:345:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  942. 2305200000,
  943. ^
  944. constants.cpp:346:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  945. 2307000000, // 155
  946. ^
  947. constants.cpp:347:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  948. 2308800000,
  949. ^
  950. constants.cpp:348:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  951. 2310600000,
  952. ^
  953. constants.cpp:349:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  954. 2312400000,
  955. ^
  956. constants.cpp:350:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  957. 2314200000,
  958. ^
  959. constants.cpp:351:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  960. 2316000000, // 160
  961. ^
  962. constants.cpp:352:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  963. 2317800000,
  964. ^
  965. constants.cpp:353:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  966. 2319600000,
  967. ^
  968. constants.cpp:354:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  969. 2321400000,
  970. ^
  971. constants.cpp:355:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  972. 2323200000,
  973. ^
  974. constants.cpp:356:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  975. 2325000000, // 165
  976. ^
  977. constants.cpp:357:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  978. 2326800000,
  979. ^
  980. constants.cpp:358:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  981. 2328600000,
  982. ^
  983. constants.cpp:359:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  984. 2330400000,
  985. ^
  986. constants.cpp:360:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  987. 2332200000,
  988. ^
  989. constants.cpp:361:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  990. 2334000000, // 170
  991. ^
  992. constants.cpp:362:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  993. 2335800000,
  994. ^
  995. constants.cpp:363:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  996. 2337600000,
  997. ^
  998. constants.cpp:364:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  999. 2339400000,
  1000. ^
  1001. constants.cpp:365:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1002. 2341200000,
  1003. ^
  1004. constants.cpp:366:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1005. 2343000000, // 175
  1006. ^
  1007. constants.cpp:367:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1008. 2344800000,
  1009. ^
  1010. constants.cpp:368:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1011. 2346600000,
  1012. ^
  1013. constants.cpp:369:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1014. 2348400000,
  1015. ^
  1016. constants.cpp:370:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1017. 2350200000,
  1018. ^
  1019. constants.cpp:371:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1020. 2352000000, // 180
  1021. ^
  1022. constants.cpp:372:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1023. 2353800000,
  1024. ^
  1025. constants.cpp:373:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1026. 2355600000,
  1027. ^
  1028. constants.cpp:374:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1029. 2357400000,
  1030. ^
  1031. constants.cpp:375:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1032. 2359200000,
  1033. ^
  1034. constants.cpp:376:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1035. 2361000000, // 185
  1036. ^
  1037. constants.cpp:377:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1038. 2362800000,
  1039. ^
  1040. constants.cpp:378:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1041. 2364600000,
  1042. ^
  1043. constants.cpp:379:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1044. 2366400000,
  1045. ^
  1046. constants.cpp:380:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1047. 2368200000,
  1048. ^
  1049. constants.cpp:381:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1050. 2370000000, // 190
  1051. ^
  1052. constants.cpp:382:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1053. 2371800000,
  1054. ^
  1055. constants.cpp:383:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1056. 2373600000,
  1057. ^
  1058. constants.cpp:384:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1059. 2375400000,
  1060. ^
  1061. constants.cpp:385:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1062. 2377200000,
  1063. ^
  1064. constants.cpp:386:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1065. 2379000000, // 195
  1066. ^
  1067. constants.cpp:387:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1068. 2380800000,
  1069. ^
  1070. constants.cpp:388:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1071. 2382600000,
  1072. ^
  1073. constants.cpp:389:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1074. 2384400000,
  1075. ^
  1076. constants.cpp:390:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1077. 2386200000,
  1078. ^
  1079. constants.cpp:391:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1080. 2388000000, // 200
  1081. ^
  1082. constants.cpp:392:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1083. 2389800000,
  1084. ^
  1085. constants.cpp:393:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1086. 2391600000,
  1087. ^
  1088. constants.cpp:394:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1089. 2393400000,
  1090. ^
  1091. constants.cpp:395:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1092. 2395200000,
  1093. ^
  1094. constants.cpp:396:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1095. 2397000000, // 205
  1096. ^
  1097. constants.cpp:397:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1098. 2398800000,
  1099. ^
  1100. constants.cpp:398:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1101. 2400600000,
  1102. ^
  1103. constants.cpp:399:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1104. 2402400000,
  1105. ^
  1106. constants.cpp:400:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1107. 2404200000,
  1108. ^
  1109. constants.cpp:401:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1110. 2406000000, // 210
  1111. ^
  1112. constants.cpp:402:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1113. 2407800000,
  1114. ^
  1115. constants.cpp:403:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1116. 2409600000,
  1117. ^
  1118. constants.cpp:404:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1119. 2411400000,
  1120. ^
  1121. constants.cpp:405:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1122. 2413200000,
  1123. ^
  1124. constants.cpp:406:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1125. 2415000000, // 215
  1126. ^
  1127. constants.cpp:407:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1128. 2416800000,
  1129. ^
  1130. constants.cpp:408:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1131. 2418600000,
  1132. ^
  1133. constants.cpp:409:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1134. 2420400000,
  1135. ^
  1136. constants.cpp:410:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1137. 2422200000,
  1138. ^
  1139. constants.cpp:411:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1140. 2424000000, // 220
  1141. ^
  1142. constants.cpp:412:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1143. 2425800000,
  1144. ^
  1145. constants.cpp:413:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1146. 2427600000,
  1147. ^
  1148. constants.cpp:414:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1149. 2429400000,
  1150. ^
  1151. constants.cpp:415:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1152. 2431200000,
  1153. ^
  1154. constants.cpp:416:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1155. 2433000000, // 225
  1156. ^
  1157. constants.cpp:417:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1158. 2434800000,
  1159. ^
  1160. constants.cpp:418:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1161. 2436600000,
  1162. ^
  1163. constants.cpp:419:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1164. 2438400000,
  1165. ^
  1166. constants.cpp:420:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1167. 2440200000,
  1168. ^
  1169. constants.cpp:421:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1170. 2442000000, // 230
  1171. ^
  1172. constants.cpp:422:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1173. 2443800000,
  1174. ^
  1175. constants.cpp:423:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1176. 2445600000,
  1177. ^
  1178. constants.cpp:424:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1179. 2447400000,
  1180. ^
  1181. constants.cpp:425:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1182. 2449200000,
  1183. ^
  1184. constants.cpp:426:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1185. 2451000000, // 235
  1186. ^
  1187. constants.cpp:427:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1188. 2452800000,
  1189. ^
  1190. constants.cpp:428:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1191. 2454600000,
  1192. ^
  1193. constants.cpp:429:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1194. 2456400000,
  1195. ^
  1196. constants.cpp:430:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1197. 2458200000,
  1198. ^
  1199. constants.cpp:431:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1200. 2460000000, // 240
  1201. ^
  1202. constants.cpp:432:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1203. 2461800000,
  1204. ^
  1205. constants.cpp:433:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1206. 2463600000,
  1207. ^
  1208. constants.cpp:434:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1209. 2465400000,
  1210. ^
  1211. constants.cpp:435:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1212. 2467200000,
  1213. ^
  1214. constants.cpp:436:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1215. 2469000000, // 245
  1216. ^
  1217. constants.cpp:437:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1218. 2470800000,
  1219. ^
  1220. constants.cpp:438:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1221. 2472600000,
  1222. ^
  1223. constants.cpp:439:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1224. 2474400000,
  1225. ^
  1226. constants.cpp:440:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1227. 2478000000,
  1228. ^
  1229. constants.cpp:441:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1230. 2500000000, // 250
  1231. ^
  1232. constants.cpp:442:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1233. 2500000000,
  1234. ^
  1235. constants.cpp:443:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1236. 2500000000,
  1237. ^
  1238. constants.cpp:444:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1239. 2500000000,
  1240. ^
  1241. constants.cpp:445:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1242. 2500000000,
  1243. ^
  1244. constants.cpp:446:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
  1245. 2500000000, // 255
  1246. ^
  1247. In file included from ../../libthecore/include/stdafx.h:141:0,
  1248. from stdafx.h:9,
  1249. from char_item.cpp:1:
  1250. ../../libthecore/include/utils.h:143:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1251. #define _countof(_Array) sizeof(*__countof_helper(_Array))
  1252. ^
  1253. char_item.cpp:5153:31: note: in expansion of macro '_countof'
  1254. if (item->GetSocket(0) >= _countof(aApplyInfo))
  1255. ^
  1256. char_item.cpp:1707:6: warning: variable 'iLimitTimerBasedOnWearFlagIndex' set but not used [-Wunused-but-set-variable]
  1257. int iLimitTimerBasedOnWearFlagIndex = -1;
  1258. ^
  1259. char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
  1260. char_item.cpp:5379:22: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
  1261. if (item->GetVnum() == 50200 | item->GetVnum() == 71049)
  1262. ^
  1263. char_item.cpp:5225:7: warning: unused variable 'wDestCell' [-Wunused-variable]
  1264. WORD wDestCell = DestCell.cell;
  1265. ^
  1266. char_item.cpp:5226:7: warning: unused variable 'bDestInven' [-Wunused-variable]
  1267. BYTE bDestInven = DestCell.window_type;
  1268. ^
  1269. char_item.cpp: In member function 'bool CHARACTER::EquipItem(LPITEM, int)':
  1270. char_item.cpp:6236:141: warning: array subscript has type 'char' [-Wchar-subscripts]
  1271. long duration = (0 != item->GetSocket(0)) ? item->GetSocket(0) : item->GetProto()->aLimits[item->GetProto()->cLimitRealTimeFirstUseIndex].lValue;
  1272. ^
  1273. char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(LPITEM)':
  1274. char_item.cpp:6321:79: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1275. for (int i = 0; i < sizeof(g_aBuffOnAttrPoints)/sizeof(g_aBuffOnAttrPoints[0]); i++)
  1276. ^
  1277. char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(LPITEM)':
  1278. char_item.cpp:6333:79: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1279. for (int i = 0; i < sizeof(g_aBuffOnAttrPoints)/sizeof(g_aBuffOnAttrPoints[0]); i++)
  1280. ^
  1281. compile empire_text_convert.cpp
  1282. char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
  1283. char_item.cpp:680:1: warning: control reaches end of non-void function [-Wreturn-type]
  1284. }
  1285. ^
  1286. compile entity.cpp
  1287. In file included from desc.cpp:8:0:
  1288. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1289. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1290. *((sh_int *) a) = ind;
  1291. ^
  1292. protocol.h: In function 'const char* encode_4bytes(int)':
  1293. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1294. *((int *) a) = ind;
  1295. ^
  1296. In file included from desc_client.cpp:7:0:
  1297. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1298. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1299. *((sh_int *) a) = ind;
  1300. ^
  1301. protocol.h: In function 'const char* encode_4bytes(int)':
  1302. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1303. *((int *) a) = ind;
  1304. ^
  1305. In file included from desc_manager.cpp:10:0:
  1306. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1307. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1308. *((sh_int *) a) = ind;
  1309. ^
  1310. protocol.h: In function 'const char* encode_4bytes(int)':
  1311. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1312. *((int *) a) = ind;
  1313. ^
  1314. compile entity_view.cpp
  1315. In file included from desc_p2p.cpp:3:0:
  1316. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1317. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1318. *((sh_int *) a) = ind;
  1319. ^
  1320. protocol.h: In function 'const char* encode_4bytes(int)':
  1321. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1322. *((int *) a) = ind;
  1323. ^
  1324. compile event.cpp
  1325. compile event_queue.cpp
  1326. compile exchange.cpp
  1327. compile file_loader.cpp
  1328. compile fishing.cpp
  1329. config.cpp: In function 'void config_init(const string&)':
  1330. config.cpp:439:22: warning: NULL used in arithmetic [-Wpointer-arith]
  1331. if (NULL != line[0])
  1332. ^
  1333. config.cpp:463:22: warning: NULL used in arithmetic [-Wpointer-arith]
  1334. if (NULL != line[0])
  1335. ^
  1336. config.cpp:487:22: warning: NULL used in arithmetic [-Wpointer-arith]
  1337. if (NULL != line[0])
  1338. ^
  1339. config.cpp:509:17: warning: unused variable 'line' [-Wunused-variable]
  1340. const char * line = two_arguments(value_string, openid_host, sizeof(openid_host), openid_uri, sizeof(openid_uri));
  1341. ^
  1342. desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
  1343. desc_client.cpp:299:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1344. if (fForce || m_tLastChannelStatusUpdateTime+CHANNELSTATUS_UPDATE_PERIOD < t) {
  1345. ^
  1346. cube.cpp: In function 'bool Cube_make(LPCHARACTER)':
  1347. cube.cpp:552:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1348. if (ch->GetGold() < cube_proto->gold)
  1349. ^
  1350. cube.cpp: In function 'void Cube_MakeCubeInformationText()':
  1351. cube.cpp:724:16: warning: unused variable 'npcVNUM' [-Wunused-variable]
  1352. const DWORD& npcVNUM = iter->first;
  1353. ^
  1354. cube.cpp: In function 'bool Cube_InformationInitialize()':
  1355. cube.cpp:791:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1356. for (int i = 0; i < s_cube_proto.size(); ++i)
  1357. ^
  1358. desc_manager.cpp: In member function 'DWORD DESC_MANAGER::CreateHandshake()':
  1359. desc_manager.cpp:135:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1360. *(DWORD *) (crc_buf ) = val;
  1361. ^
  1362. compile gm.cpp
  1363. compile guild.cpp
  1364. compile guild_manager.cpp
  1365. gm.cpp: In function 'BYTE gm_new_get_level(const char*, const char*, const char*)':
  1366. gm.cpp:69:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  1367. if ( LC_IsEurope() && !LC_IsTaiwan() || LC_IsSingapore() )
  1368. ^
  1369. compile guild_war.cpp
  1370. compile horse_rider.cpp
  1371. compile horsename_manager.cpp
  1372. compile input.cpp
  1373. compile input_auth.cpp
  1374. compile input_db.cpp
  1375. cmd_gm.cpp: In function 'void do_set_stat(LPCHARACTER, const char*, int, int)':
  1376. cmd_gm.cpp:4077:17: warning: NULL used in arithmetic [-Wpointer-arith]
  1377. if (*szName == NULL || *szChangeAmount == '\0')
  1378. ^
  1379. compile input_login.cpp
  1380. compile input_main.cpp
  1381. cmd_gm.cpp: In function 'void do_mob_ld(LPCHARACTER, const char*, int, int)':
  1382. cmd_gm.cpp:869:6: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  1383. dir);
  1384. ^
  1385. cmd_gm.cpp:869:6: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  1386. input_main.cpp:108:2: error: #endif without #if
  1387. #endif
  1388. ^
  1389. compile input_p2p.cpp
  1390. compile input_teen.cpp
  1391. In file included from input_main.cpp:9:0:
  1392. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1393. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1394. *((sh_int *) a) = ind;
  1395. ^
  1396. protocol.h: In function 'const char* encode_4bytes(int)':
  1397. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1398. *((int *) a) = ind;
  1399. ^
  1400. cmd_gm.cpp: In function 'void do_use_item(LPCHARACTER, const char*, int, int)':
  1401. cmd_gm.cpp:4832:41: warning: 'cell' may be used uninitialized in this function [-Wmaybe-uninitialized]
  1402. LPITEM item = ch->GetInventoryItem(cell);
  1403. ^
  1404. compile input_udp.cpp
  1405. compile ip_ban.cpp
  1406. compile item.cpp
  1407. compile item_addon.cpp
  1408. compile item_attribute.cpp
  1409. In file included from input_auth.cpp:7:0:
  1410. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1411. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1412. *((sh_int *) a) = ind;
  1413. ^
  1414. protocol.h: In function 'const char* encode_4bytes(int)':
  1415. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1416. *((int *) a) = ind;
  1417. ^
  1418. input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
  1419. input_auth.cpp:467:8: warning: unused variable 'last' [-Wunused-variable]
  1420. char *last = 0;
  1421. ^
  1422. In file included from input_login.cpp:13:0:
  1423. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1424. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1425. *((sh_int *) a) = ind;
  1426. ^
  1427. protocol.h: In function 'const char* encode_4bytes(int)':
  1428. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1429. *((int *) a) = ind;
  1430. ^
  1431. compile item_manager_idrange.cpp
  1432. compile item_manager.cpp
  1433. In file included from input_db.cpp:11:0:
  1434. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1435. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1436. *((sh_int *) a) = ind;
  1437. ^
  1438. protocol.h: In function 'const char* encode_4bytes(int)':
  1439. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1440. *((int *) a) = ind;
  1441. ^
  1442. compile locale.cpp
  1443. compile locale_service.cpp
  1444. In file included from input_teen.cpp:17:0:
  1445. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1446. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1447. *((sh_int *) a) = ind;
  1448. ^
  1449. protocol.h: In function 'const char* encode_4bytes(int)':
  1450. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1451. *((int *) a) = ind;
  1452. ^
  1453. compile login_data.cpp
  1454. compile lzo_manager.cpp
  1455. compile log.cpp
  1456. input_teen.cpp: In member function 'bool CInputTeen::ProcessHandshake(LPDESC, const void*, size_t, int&)':
  1457. input_teen.cpp:59:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1458. *((DWORD *) buf) = handshake ^ HANDSHAKE_XOR;
  1459. ^
  1460. compile marriage.cpp
  1461. input_main.cpp: At global scope:
  1462. input_main.cpp:55:1: error: 'ifdef' does not name a type
  1463. ifdef __SEND_TARGET_INFO__
  1464. ^
  1465. compile matrix_card.cpp
  1466. input_main.cpp: In member function 'int CInputMain::Chat(LPCHARACTER, const char*, size_t)':
  1467. input_main.cpp:800:7: warning: unused variable 'len_global' [-Wunused-variable]
  1468. int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s %s", kingdoms[ch->GetEmpire() - 1], chatbuf);
  1469. ^
  1470. compile messenger_manager.cpp
  1471. compile mining.cpp
  1472. compile mob_manager.cpp
  1473. compile monarch.cpp
  1474. input_p2p.cpp: In member function 'void CInputP2P::OfflineShopBuy(LPDESC, const char*)':
  1475. input_p2p.cpp:505:28: warning: unused variable 'p' [-Wunused-variable]
  1476. TPacketGGOfflineShopBuy * p = (TPacketGGOfflineShopBuy *)c_pData;
  1477. ^
  1478. compile motion.cpp
  1479. compile over9refine.cpp
  1480. In file included from item.cpp:8:0:
  1481. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1482. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1483. *((sh_int *) a) = ind;
  1484. ^
  1485. protocol.h: In function 'const char* encode_4bytes(int)':
  1486. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1487. *((int *) a) = ind;
  1488. ^
  1489. In file included from input_udp.cpp:9:0:
  1490. protocol.h: In function 'const char* encode_2bytes(sh_int)':
  1491. protocol.h:14:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1492. *((sh_int *) a) = ind;
  1493. ^
  1494. protocol.h: In function 'const char* encode_4bytes(int)':
  1495. protocol.h:21:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  1496. *((int *) a) = ind;
  1497. ^
  1498. In file included from ../../libthecore/include/stdafx.h:141:0,
  1499. from stdafx.h:9,
  1500. from item.cpp:1:
  1501. belt_inventory_helper.h: In static member function 'static CBeltInventoryHelper::TGradeUnit CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
  1502. ../../libthecore/include/utils.h:143:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1503. #define _countof(_Array) sizeof(*__countof_helper(_Array))
  1504. ^
  1505. belt_inventory_helper.h:28:16: note: in expansion of macro '_countof'
  1506. if (level >= _countof(beltGradeByLevelTable))
  1507. ^
  1508. In file included from item.cpp:17:0:
  1509. item.h: In constructor 'CItem::CItem(DWORD)':
  1510. item.h:290:12: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after [-Wreorder]
  1511. LPEVENT m_pkRealTimeExpireEvent;
  1512. ^
  1513. item.h:287:12: warning: 'LPEVENT CItem::m_pkExpireEvent' [-Wreorder]
  1514. LPEVENT m_pkExpireEvent;
  1515. ^
  1516. item.cpp:25:1: warning: when initialized here [-Wreorder]
  1517. CItem::CItem(DWORD dwVnum)
  1518. ^
  1519. item.cpp: In member function 'bool CItem::AddToCharacter(LPCHARACTER, TItemPos)':
  1520. item.cpp:364:7: warning: unused variable 'bWereMine' [-Wunused-variable]
  1521. bool bWereMine = this->GetLastOwnerPID() == ch->GetPlayerID();
  1522. ^
  1523. item.cpp: In function 'const bool CanPutIntoRing(LPITEM, LPITEM)':
  1524. item.cpp:1769:14: warning: unused variable 'vnum' [-Wunused-variable]
  1525. const DWORD vnum = item->GetVnum();
  1526. ^
  1527. item.cpp: In member function 'bool CItem::CanPutInto(LPITEM)':
  1528. item.cpp:1802:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1529. for (int i = 0; i < sizeof(infos) / sizeof(infos[0]); i++)
  1530. ^
  1531. item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
  1532. item.cpp:2058:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1533. if (remain_sec == duration)
  1534. ^
  1535. item.cpp:2060:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1536. if ((given_time + remain_sec) >= duration)
  1537. ^
  1538. item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
  1539. item.cpp:2082:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1540. if (remain_sec == duration)
  1541. ^
  1542. item.cpp: In member function 'int CItem::GetDuration()':
  1543. item.cpp:2113:69: warning: array subscript has type 'char' [-Wchar-subscripts]
  1544. return GetProto()->aLimits[GetProto()->cLimitTimerBasedOnWearIndex].lValue;
  1545. ^
  1546. compile p2p.cpp
  1547. compile packet_info.cpp
  1548. compile party.cpp
  1549. item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
  1550. item_manager.cpp:607:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  1551. for (int i = 0; i < m_vec_item_vnum_range_info.size(); i++)
  1552. ^
  1553. compile passpod.cpp
  1554. compile pcbang.cpp
  1555. compile polymorph.cpp
  1556. compile priv_manager.cpp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement