Is this helpful to anyone? I tell friend to compile, and his MSVC has this option for code analysis.
He tell me file is 1091Kb big for latest rev. gna\src\display3d.c(639) : warning C6244: Local declaration of 'camera' hides previous declaration at line '80' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display3d.c(639) : warning C6244: Local declaration of 'player' hides previous declaration at line '80' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display3d.c(1344) : warning C6011: Dereferencing NULL pointer 'psParentObj': Lines: 1332, 1333, 1334, 1335, 1336, 1337, 1340, 1344 gna\src\display3d.c(1424) : warning C6011: Dereferencing NULL pointer 'psStructure': Lines: 1332, 1333, 1334, 1335, 1336, 1337, 1340, 1344, 1352, 1353, 1354, 1360, 1362, 1364, 1367, 1368, 1369, 1372, 1375, 1376, 1379, 1382, 1383, 1384, 1385, 1388, 1391, 1392, 1393, 1396, 1415, 1419, 1421, 1423, 1424 gna\src\display3d.c(1399) : warning C6011: Dereferencing NULL pointer 'psDroid': Lines: 1332, 1333, 1334, 1335, 1336, 1337, 1340, 1344, 1352, 1353, 1354, 1360, 1362, 1364, 1367, 1368, 1369, 1372, 1375, 1376, 1379, 1382, 1383, 1384, 1385, 1388, 1391, 1392, 1393, 1396, 1398, 1399 gna\src\display3d.c(1489) : warning C6385: Invalid data: accessing 'psStructure->visible', the readable size is '8' bytes, but '1048561' bytes might be read: Lines: 1454, 1455, 1456, 1457, 1460, 1463, 1466, 1463, 1466, 1463, 1466, 1469, 1471, 1474, 1481, 1489 gna\src\display3d.c(1991) : warning C6244: Local declaration of 'temp' hides previous declaration at line '71' of 'f:\warzone_src\gna\src\edit3d.h' gna\src\display3d.c(2489) : warning C6244: Local declaration of 'temp' hides previous declaration at line '71' of 'f:\warzone_src\gna\src\edit3d.h' gna\src\display3d.c(2517) : warning C6385: Invalid data: accessing 'pAssemblyPointIMDs', the readable size is '80' bytes, but '100' bytes might be read: Lines: 2487, 2488, 2489, 2491, 2493, 2495, 2496, 2497, 2500, 2502, 2505, 2506, 2509, 2513, 2515, 2517 gna\src\display3d.c(2517) : warning C6385: Invalid data: accessing 'pAssemblyPointIMDs[psPosition->factoryType]', the readable size is '20' bytes, but '24' bytes might be read: Lines: 2487, 2488, 2489, 2491, 2493, 2495, 2496, 2497, 2500, 2502, 2505, 2506, 2509, 2513, 2515, 2517 gna\src\display3d.c(2560) : warning C6244: Local declaration of 'temp' hides previous declaration at line '71' of 'f:\warzone_src\gna\src\edit3d.h' gna\src\display3d.c(4109) : warning C6244: Local declaration of 'tileZ' hides previous declaration at line '254' of 'f:\warzone_src\gna\src\display3d.c' gna\src\display3d.c(4471) : warning C6386: Buffer overrun: accessing 'tileScreenInfo', the writable size is '253500' bytes, but '257400' bytes might be written: Lines: 4335, 4336, 4337, 4338, 4339, 4340, 4341, 4342, 4347, 4349, 4357, 4365, 4381, 4387, 4390, 4407, 4408, 4411, 4412, 4415, 4456, 4459, 4460, 4463, 4465, 4466, 4468, 4469, 4471 gna\src\display3d.c(4488) : warning C6385: Invalid data: accessing 'tileScreenInfo', the readable size is '253500' bytes, but '257400' bytes might be read: Lines: 4335, 4336, 4337, 4338, 4339, 4340, 4341, 4342, 4347, 4349, 4357, 4365, 4381, 4387, 4390, 4407, 4408, 4411, 4412, 4415, 4456, 4459, 4460, 4463, 4465, 4466, 4468, 4469, 4471, 4472, 4474, 4475, 4478, 4479, 4480, 4486, 4488 gna\src\display3d.c(4468) : warning C6386: Buffer overrun: accessing 'tileScreenInfo[i+0]', the writable size is '3900' bytes, but '3960' bytes might be written: Lines: 4335, 4336, 4337, 4338, 4339, 4340, 4341, 4342, 4347, 4349, 4357, 4365, 4381, 4387, 4390, 4407, 4408, 4411, 4412, 4415, 4456, 4459, 4460, 4463, 4465, 4466, 4468 gna\src\display3d.c(4471) : warning C6386: Buffer overrun: accessing 'tileScreenInfo[i+1]', the writable size is '3900' bytes, but '3960' bytes might be written: Lines: 4335, 4336, 4337, 4338, 4339, 4340, 4341, 4342, 4347, 4349, 4357, 4365, 4381, 4387, 4390, 4407, 4408, 4411, 4412, 4415, 4456, 4459, 4460, 4463, 4465, 4466, 4468, 4469, 4471 gna\src\display3d.c(4540) : warning C6385: Invalid data: accessing 'tileScreenInfo[i+0]', the readable size is '3900' bytes, but '3960' bytes might be read: Lines: 4335, 4336, 4337, 4338, 4339, 4340, 4341, 4342, 4347, 4349, 4357, 4365, 4381, 4387, 4390, 4407, 4408, 4411, 4412, 4415, 4456, 4459, 4460, 4463, 4465, 4466, 4468, 4469, 4471, 4472, 4474, 4475, 4478, 4479, 4480, 4486, 4488, 4489, 4504, 4508, 4510, 4511, 4525, 4526, 4527, 4534, 4538, 4540 gna\src\display3d.c(4542) : warning C6385: Invalid data: accessing 'tileScreenInfo[i+1]', the readable size is '3900' bytes, but '3960' bytes might be read: Lines: 4335, 4336, 4337, 4338, 4339, 4340, 4341, 4342, 4347, 4349, 4357, 4365, 4381, 4387, 4390, 4407, 4408, 4411, 4412, 4415, 4456, 4459, 4460, 4463, 4465, 4466, 4468, 4469, 4471, 4472, 4474, 4475, 4478, 4479, 4480, 4486, 4488, 4489, 4504, 4508, 4510, 4511, 4525, 4526, 4527, 4534, 4538, 4540, 4542 gna\src\display3d.c(4658) : warning C6244: Local declaration of 'worldAngle' hides previous declaration at line '95' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display3d.c(4914) : warning C6244: Local declaration of 'player' hides previous declaration at line '80' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display3d.c(5428) : warning C6244: Local declaration of 'rx' hides previous declaration at line '91' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display3d.c(5428) : warning C6244: Local declaration of 'rz' hides previous declaration at line '91' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display.c(1172) : warning C6385: Invalid data: accessing 'arnMPointers[item]', the readable size is '52' bytes, but '64' bytes might be read: Lines: 959, 960, 961, 962, 967, 969, 971, 973, 976, 981, 983, 986, 989, 990, 1007, 1013, 1020, 1031, 1032, 1034, 1036, 1038, 1039, 1043, 1050, 1055, 1061, 1075, 1082, 1112, 1119, 1130, 1147, 1160, 1167, 1172 gna\src\display.c(2099) : warning C6385: Invalid data: accessing 'apsDroidLists', the readable size is '32' bytes, but '956' bytes might be read: Lines: 2026, 2027, 2029, 2030, 2031, 2032, 2033, 2034, 2038, 2044, 2050, 2054, 2056, 2059, 2062, 2063, 2065, 2071, 2096, 2099 gna\src\display.c(3253) : warning C6244: Local declaration of 'selectedPlayer' hides previous declaration at line '285' of 'f:\warzone_src\gna\src\hci.h' gna\src\display.c(3293) : warning C6385: Invalid data: accessing 'DroidSelectionWeights', the readable size is '13' bytes, but '14' bytes might be read: Lines: 3255, 3256, 3259, 3260, 3262, 3263, 3264, 3266, 3267, 3288, 3289, 3292, 3293 gna\src\display.c(3315) : warning C6011: Dereferencing NULL pointer 'psDominant': Lines: 3255, 3256, 3259, 3260, 3262, 3263, 3264, 3266, 3267, 3288, 3289, 3292, 3293, 3267, 3310, 3312, 3313, 3315 gna\src\display.c(3394) : warning C6244: Local declaration of 'player' hides previous declaration at line '80' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display.c(3415) : warning C6244: Local declaration of 'player' hides previous declaration at line '80' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display.c(3436) : warning C6244: Local declaration of 'player' hides previous declaration at line '80' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display.c(3456) : warning C6244: Local declaration of 'player' hides previous declaration at line '80' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display.c(3474) : warning C6244: Local declaration of 'player' hides previous declaration at line '80' of 'f:\warzone_src\gna\src\display3d.h' gna\src\display3d.c(1068) : warning C4702: unreachable code gna\src\display3d.c(2702) : warning C4701: potentially uninitialized local variable 'originalDirection' used -- Click for free info on accredited degrees with 150K/ year potential http://tagline.hushmail.com/fc/CAaCXv1JCgN3q9VmIVMTfjVjEgEUF9Uh/ _______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
