Advertisement
pauldacheez

gekko - Clang warning log

Dec 15th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.03 KB | None | 0 0
  1. src/common/src/config.h:235:17: warning: enumeration values 'RENDERER_NULL' and 'NUMBER_OF_VIDEO_CONFIGS' not handled in switch [-Wswitch]
  2. switch (renderer) {
  3. ^
  4. src/common/src/config.h:261:17: warning: enumeration values 'CPU_NULL' and 'NUMBER_OF_CPU_CONFIGS' not handled in switch [-Wswitch]
  5. switch (cpu) {
  6. ^
  7. ## These two fucking warnings appear so many fucking times that removing all duplicates shortened this log by ~200 lines.
  8.  
  9.  
  10. src/core/src/memory.cpp:23:15: warning: expected '=' following '#pragma align' - ignored
  11. #pragma align 4096
  12. ^
  13.  
  14.  
  15. src/core/src/hle/hle_general.h:85:23: warning: implicit conversion of NULL constant to 'u32' (aka 'unsigned int') [-Wnull-conversion]
  16. dvdfilehandle[i] = NULL;
  17. ~ ^~~~
  18. src/core/src/hle/hle_audio.cpp:84:1: warning: '/*' within block comment [-Wcomment]
  19. /*
  20. ^
  21.  
  22.  
  23. src/core/src/hle/hle.cpp:672:34: warning: format specifies type 'unsigned int' but the argument has type 'uintptr_t' (aka 'unsigned long') [-Wformat]
  24. sprintf(fData, "0x%08X:\t%s\t0x%08X/0x%08X\t0x%08X\n", rFunction.address, rFunction.funcName.c_str(), rFunction.funcSize, rFunction.DetectedSize, rFunction.CRC);
  25. ~~~^ ~~~~~~~~~~~~~~~~~
  26. %08lX
  27.  
  28.  
  29. src/core/src/hw/hw_exi.cpp:66:21: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  30. else if((offset >= 0x00000000) && (offset < 0x08000000))
  31. ~~~~~~ ^ ~~~~~~~~~~
  32. src/core/src/hw/hw_exi.cpp:147:73: warning: more '%' conversions than data arguments [-Wformat]
  33. printf(".EXI Unknown DMA transfer: Chan %d Device %d Len %08X Data %08X\n", Chan, Device, exi.len[Chan]);
  34. ~~~^
  35. src/core/src/hw/hw_exi.cpp:257:28: warning: '&' within '|' [-Wbitwise-op-parentheses]
  36. exi.csr[CRVal] &= ~(data & EXI_CSR_EXIINT | EXI_CSR_EXTINT | EXI_CSR_TCINT);
  37. ~~~~~^~~~~~~~~~~~~~~~ ~
  38. src/core/src/hw/hw_exi.cpp:257:28: note: place parentheses around the '&' expression to silence this warning
  39. exi.csr[CRVal] &= ~(data & EXI_CSR_EXIINT | EXI_CSR_EXTINT | EXI_CSR_TCINT);
  40. ~~~~~^~~~~~~~~~~~~~~~
  41.  
  42.  
  43. src/core/src/powerpc/cpu_core.cpp:524:22: warning: invalid conversion specifier 'I' [-Wformat-invalid-specifier]
  44. printf("TBR: 0x%016I64X", ireg.TBR.TBR);
  45. ~~~~^
  46. src/core/src/powerpc/cpu_core.cpp:526:29: warning: invalid conversion specifier 'I' [-Wformat-invalid-specifier]
  47. printf("\tCorrect: 0x%016I64X\n", CompareRegs.TBR.TBR);
  48. ~~~~^
  49. src/core/src/powerpc/cpu_core.cpp:583:32: warning: invalid conversion specifier 'I' [-Wformat-invalid-specifier]
  50. printf("FPR %d Start: 0x%016I64X-%016I64X\nFPR %d End:0x%016I64X-%016I64X\n", x, iregBackup.fpr[x].ps1._u64, iregBackup.fpr[x].ps0._u64, x, ireg.fpr[x].ps1._u64,...
  51. ~~~~^
  52. src/core/src/powerpc/cpu_core.cpp:583:41: warning: invalid conversion specifier 'I' [-Wformat-invalid-specifier]
  53. printf("FPR %d Start: 0x%016I64X-%016I64X\nFPR %d End:0x%016I64X-%016I64X\n", x, iregBackup.fpr[x].ps1._u64, iregBackup.fpr[x].ps0._u64, x, ireg.fpr[x].ps1._u64,...
  54. ~~~~^
  55. src/core/src/powerpc/cpu_core.cpp:583:64: warning: invalid conversion specifier 'I' [-Wformat-invalid-specifier]
  56. printf("FPR %d Start: 0x%016I64X-%016I64X\nFPR %d End:0x%016I64X-%016I64X\n", x, iregBackup.fpr[x].ps1._u64, iregBackup.fpr[x].ps0._u64, x, ireg.fpr[x].ps1._u64,...
  57. ~~~~^
  58. src/core/src/powerpc/cpu_core.cpp:583:73: warning: invalid conversion specifier 'I' [-Wformat-invalid-specifier]
  59. printf("FPR %d Start: 0x%016I64X-%016I64X\nFPR %d End:0x%016I64X-%016I64X\n", x, iregBackup.fpr[x].ps1._u64, iregBackup.fpr[x].ps0._u64, x, ireg.fpr[x].ps1._u64,...
  60. ~~~~^
  61. src/core/src/powerpc/cpu_core.cpp:590:35: warning: invalid conversion specifier 'I' [-Wformat-invalid-specifier]
  62. printf("FPR %d Correct: 0x%016I64X-%016I64X\n", x, CompareRegs.fpr[x].ps1._u64, CompareRegs.fpr[x].ps0._u64);
  63. ~~~~^
  64. src/core/src/powerpc/cpu_core.cpp:590:44: warning: invalid conversion specifier 'I' [-Wformat-invalid-specifier]
  65. printf("FPR %d Correct: 0x%016I64X-%016I64X\n", x, CompareRegs.fpr[x].ps1._u64, CompareRegs.fpr[x].ps0._u64);
  66. ~~~~^
  67.  
  68.  
  69. src/core/src/powerpc/disassembler/ppc_disasm.cpp:375:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  70. if (cnd = trap_condition[PPCGETD(in)]) {
  71. ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  72. src/core/src/powerpc/disassembler/ppc_disasm.cpp:375:11: note: place parentheses around the assignment to silence this warning
  73. if (cnd = trap_condition[PPCGETD(in)]) {
  74. ^
  75. ( )
  76. src/core/src/powerpc/disassembler/ppc_disasm.cpp:375:11: note: use '==' to turn this assignment into an equality comparison
  77. if (cnd = trap_condition[PPCGETD(in)]) {
  78. ^
  79. ==
  80. src/core/src/powerpc/disassembler/ppc_disasm.cpp:394:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  81. if (i = (int)PPCGETCRD(in)) {
  82. ~~^~~~~~~~~~~~~~~~
  83. src/core/src/powerpc/disassembler/ppc_disasm.cpp:394:11: note: place parentheses around the assignment to silence this warning
  84. if (i = (int)PPCGETCRD(in)) {
  85. ^
  86. ( )
  87. src/core/src/powerpc/disassembler/ppc_disasm.cpp:394:11: note: use '==' to turn this assignment into an equality comparison
  88. if (i = (int)PPCGETCRD(in)) {
  89. ^
  90. ==
  91. src/core/src/powerpc/disassembler/ppc_disasm.cpp:478:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  92. if (offs = branch(dp,in,"",(in&2)?1:0,d)) {
  93. ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  94. src/core/src/powerpc/disassembler/ppc_disasm.cpp:478:12: note: place parentheses around the assignment to silence this warning
  95. if (offs = branch(dp,in,"",(in&2)?1:0,d)) {
  96. ^
  97. ( )
  98. src/core/src/powerpc/disassembler/ppc_disasm.cpp:478:12: note: use '==' to turn this assignment into an equality comparison
  99. if (offs = branch(dp,in,"",(in&2)?1:0,d)) {
  100. ^
  101. ==
  102. src/core/src/powerpc/disassembler/ppc_disasm.cpp:484:32: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
  103. sprintf(dp->operands,"0x%.8X",(unsigned long)d);
  104. ~~~^ ~~~~~~~~~~~~~~~~
  105. %.8lX
  106. src/core/src/powerpc/disassembler/ppc_disasm.cpp:486:24: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
  107. sprintf(oper,"0x%.8X",(unsigned long)(*dp->iaddr) + d);
  108. ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  109. %.8lX
  110. src/core/src/powerpc/disassembler/ppc_disasm.cpp:500:32: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
  111. sprintf(dp->operands,"0x%.8X",(unsigned long)d);
  112. ~~~^ ~~~~~~~~~~~~~~~~
  113. %.8lX
  114. src/core/src/powerpc/disassembler/ppc_disasm.cpp:502:32: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
  115. sprintf(dp->operands,"0x%.8X",(unsigned long)(*dp->iaddr) + d);
  116. ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  117. %.8lX
  118. src/core/src/powerpc/disassembler/ppc_disasm.cpp:592:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  119. if (i = (int)PPCGETCRD(in))
  120. ~~^~~~~~~~~~~~~~~~
  121. src/core/src/powerpc/disassembler/ppc_disasm.cpp:592:11: note: place parentheses around the assignment to silence this warning
  122. if (i = (int)PPCGETCRD(in))
  123. ^
  124. ( )
  125. src/core/src/powerpc/disassembler/ppc_disasm.cpp:592:11: note: use '==' to turn this assignment into an equality comparison
  126. if (i = (int)PPCGETCRD(in))
  127. ^
  128. ==
  129. src/core/src/powerpc/disassembler/ppc_disasm.cpp:606:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  130. if (cnd = trap_condition[to]) {
  131. ~~~~^~~~~~~~~~~~~~~~~~~~
  132. src/core/src/powerpc/disassembler/ppc_disasm.cpp:606:11: note: place parentheses around the assignment to silence this warning
  133. if (cnd = trap_condition[to]) {
  134. ^
  135. ( )
  136. src/core/src/powerpc/disassembler/ppc_disasm.cpp:606:11: note: use '==' to turn this assignment into an equality comparison
  137. if (cnd = trap_condition[to]) {
  138. ^
  139. ==
  140. src/core/src/powerpc/disassembler/ppc_disasm.cpp:800:28: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  141. sprintf(buf, "%i", val);
  142. ~^ ~~~
  143. %li
  144. src/core/src/powerpc/disassembler/ppc_disasm.cpp:806:33: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
  145. sprintf(buf, "-0x%.4X", ((~val) & 0xffff) + 1);
  146. ~~~^ ~~~~~~~~~~~~~~~~~~~~~
  147. %.4lX
  148. src/core/src/powerpc/disassembler/ppc_disasm.cpp:810:32: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
  149. sprintf(buf, "0x%.4X", val);
  150. ~~~^ ~~~
  151. %.4lX
  152. src/core/src/powerpc/disassembler/ppc_disasm.cpp:919:28: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  153. sprintf(buf, "%i", val);
  154. ~^ ~~~
  155. %li
  156. src/core/src/powerpc/disassembler/ppc_disasm.cpp:925:33: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
  157. sprintf(buf, "-0x%.4X", ((~val) & 0xfff) + 1);
  158. ~~~^ ~~~~~~~~~~~~~~~~~~~~
  159. %.4lX
  160. src/core/src/powerpc/disassembler/ppc_disasm.cpp:929:32: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
  161. sprintf(buf, "0x%.4X", val);
  162. ~~~^ ~~~
  163. %.4lX
  164. src/core/src/powerpc/disassembler/ppc_disasm.cpp:942:41: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  165. sprintf(dp->operands, "f%d, %s (%s), %d, %d", s, ps_ldst_offs(d), regnames[a], (in >> 15) & 1, (in >> 12) & 7);
  166. ~^ ~~~~~~~~~~~~~~
  167. %ld
  168. src/core/src/powerpc/disassembler/ppc_disasm.cpp:942:45: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  169. sprintf(dp->operands, "f%d, %s (%s), %d, %d", s, ps_ldst_offs(d), regnames[a], (in >> 15) & 1, (in >> 12) & 7);
  170. ~^ ~~~~~~~~~~~~~~
  171. %ld
  172. src/core/src/powerpc/disassembler/ppc_disasm.cpp:949:42: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  173. sprintf(dp->operands, "f%d, %s, %s, %d, %d", (int)PPCGETD(in), regnames[a], regnames[b], (in >> 10) & 1, (in >> 7) & 7);
  174. ~^ ~~~~~~~~~~~~~~
  175. %ld
  176. src/core/src/powerpc/disassembler/ppc_disasm.cpp:949:46: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  177. sprintf(dp->operands, "f%d, %s, %s, %d, %d", (int)PPCGETD(in), regnames[a], regnames[b], (in >> 10) & 1, (in >> 7) & 7);
  178. ~^ ~~~~~~~~~~~~~
  179. %ld
  180.  
  181.  
  182. src/core/src/powerpc/interpreter/cpu_int_opcodes.cpp:177:26: warning: format specifies type 'char *' but the argument has type 'char' [-Wformat]
  183. sprintf(dumpfilename, "%slastops.txt", '.');
  184. ~^ ~~~
  185. %hhd
  186.  
  187.  
  188. src/core/src/video/gx_fifo.cpp:66:2: warning: '/*' within block comment [-Wcomment]
  189. /*memset(&dl_cache[0], 0, 0x10000*sizeof(DLCache));
  190. ^
  191.  
  192.  
  193. src/video_core/src/renderer_gl3/shader_manager.cpp:258:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  194. _SHADER_FSDEF(temp);
  195. ~~~~~~~~~~~~~~^~~~~
  196. src/video_core/src/renderer_gl3/shader_manager.cpp:188:72: note: expanded from macro '_SHADER_FSDEF'
  197. #define _SHADER_FSDEF(...) _fs_offset += sprintf(&_fs_def[_fs_offset], __VA_ARGS__)
  198. ^
  199.  
  200.  
  201. Linking CXX executable gekko
  202. ld: library not found for -lrt
  203. clang: error: linker command failed with exit code 1 (use -v to see invocation)
  204. ## librt doesn't exist on OS X, we need to replace it.
  205.  
  206.  
  207. src/gekko_qt/src/main.cpp:284:13: warning: enumeration value 'Style_None' not handled in switch [-Wswitch]
  208. switch (style)
  209. ^
  210.  
  211.  
  212. Linking CXX executable gekko-qt
  213. ld: library not found for -lrt
  214. clang: error: linker command failed with exit code 1 (use -v to see invocation)
  215. ## Fucking librt.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement