Advertisement
pauldacheez

Dolphin - clang warnings 3.0-776

Oct 12th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. Source/Core/Common/Src/StringUtil.cpp:142:13: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  2. if (value >= static_cast<unsigned long>(0x100000000ull)
  3. ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. 1 warning generated.
  5.  
  6.  
  7.  
  8.  
  9. Source/Core/Common/Src/x64Emitter.cpp:873:7: warning: unused variable 'writeImm' [-Wunused-variable]
  10. bool writeImm = false;
  11. ^
  12. Source/Core/Common/Src/x64Emitter.cpp:904:7: warning: unused variable 'writeImm' [-Wunused-variable]
  13. bool writeImm = false;
  14. ^
  15. 2 warnings generated.
  16.  
  17.  
  18.  
  19.  
  20. Source/Core/Common/Src/x64Emitter.cpp:873:7: warning: unused variable 'writeImm' [-Wunused-variable]
  21. bool writeImm = false;
  22. ^
  23. Source/Core/Common/Src/x64Emitter.cpp:904:7: warning: unused variable 'writeImm' [-Wunused-variable]
  24. bool writeImm = false;
  25. ^
  26. 2 warnings generated.
  27.  
  28.  
  29.  
  30.  
  31. Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp:358:24: warning: explicitly assigning a variable of type 'u32' (aka 'unsigned int') to itself
  32. [-Wself-assign]
  33. dstClr = dstClr;
  34. ~~~~~~ ^ ~~~~~~
  35. 1 warning generated.
  36.  
  37.  
  38.  
  39.  
  40. Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp:358:24: warning: explicitly assigning a variable of type 'u32' (aka 'unsigned int') to itself
  41. [-Wself-assign]
  42. dstClr = dstClr;
  43. ~~~~~~ ^ ~~~~~~
  44. 1 warning generated.
  45.  
  46.  
  47.  
  48.  
  49. Source/Core/VideoCommon/Src/PixelShaderGen.cpp:629:8: warning: unused variable 'pmainstart' [-Wunused-variable]
  50. char* pmainstart = p;
  51. ^
  52. 1 warning generated.
  53.  
  54.  
  55.  
  56.  
  57. Source/Core/VideoCommon/Src/PixelShaderGen.cpp:629:8: warning: unused variable 'pmainstart' [-Wunused-variable]
  58. char* pmainstart = p;
  59. ^
  60. 1 warning generated.
  61.  
  62.  
  63.  
  64.  
  65. In file included from Source/Core/Core/Src/HW/DSPLLE/DSPDebugInterface.cpp:18:
  66. Source/Core/Core/Src/HW/DSPLLE/DSPDebugInterface.h:30:15: warning: 'DSPDebugInterface::insertBLR' hides overloaded virtual function
  67. [-Woverloaded-virtual]
  68. virtual void insertBLR(unsigned int address);
  69. ^
  70. Source/Core/Common/Src/DebugInterface.h:33:15: note: hidden overloaded virtual function 'DebugInterface::insertBLR' declared here
  71. virtual void insertBLR(unsigned int /*address*/, unsigned int) {}
  72. ^
  73. 1 warning generated.
  74.  
  75.  
  76.  
  77.  
  78. In file included from Source/Core/Core/Src/HW/DSPLLE/DSPDebugInterface.cpp:18:
  79. Source/Core/Core/Src/HW/DSPLLE/DSPDebugInterface.h:30:15: warning: 'DSPDebugInterface::insertBLR' hides overloaded virtual function
  80. [-Woverloaded-virtual]
  81. virtual void insertBLR(unsigned int address);
  82. ^
  83. Source/Core/Common/Src/DebugInterface.h:33:15: note: hidden overloaded virtual function 'DebugInterface::insertBLR' declared here
  84. virtual void insertBLR(unsigned int /*address*/, unsigned int) {}
  85. ^
  86. 1 warning generated.
  87.  
  88.  
  89.  
  90.  
  91. Source/Core/Core/Src/HW/GCMemcard.cpp:619:6: warning: unused variable 'memcardSize' [-Wunused-variable]
  92. u16 memcardSize = BE16(hdr.SizeMb) * MBIT_TO_BLOCKS;
  93. ^
  94. 1 warning generated.
  95.  
  96.  
  97.  
  98.  
  99. Source/Core/Core/Src/HW/Memmap.cpp:661:3: warning: add explicit braces to avoid dangling else [-Wdangling-else]
  100. else
  101. ^
  102. 1 warning generated.
  103.  
  104.  
  105.  
  106.  
  107. Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp:515:9: warning: 'ARRAYSIZE' macro redefined
  108. #define ARRAYSIZE(_arr) (sizeof(_arr)/(sizeof(_arr[0])))
  109. ^
  110. Source/Core/Common/Src/CommonFuncs.h:66:10: note: previous definition is here
  111. #define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0]))
  112. ^
  113. 1 warning generated.
  114.  
  115.  
  116.  
  117.  
  118. Source/Core/Core/Src/PowerPC/PowerPC.cpp:148:27: warning: variable '_mode' is uninitialized when used here [-Wuninitialized]
  119. asm ("fstcw %0" : : "m" (_mode));
  120. ^~~~~
  121. Source/Core/Core/Src/PowerPC/PowerPC.cpp:147:22: note: initialize the variable '_mode' to silence this warning
  122. unsigned short _mode;
  123. ^
  124. = 0
  125. 1 warning generated.
  126.  
  127.  
  128.  
  129.  
  130. Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp:1390:33: warning: '&&' within '||' [-Wlogical-op-parentheses]
  131. if( j == 0 || i == 0x80000000 && j == -1)
  132. ~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~
  133. Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp:1390:33: note: place parentheses around the '&&' expression to silence this warning
  134. if( j == 0 || i == 0x80000000 && j == -1)
  135. ^
  136. ( )
  137. 1 warning generated.
  138.  
  139.  
  140.  
  141.  
  142. Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp:1390:33: warning: '&&' within '||' [-Wlogical-op-parentheses]
  143. if( j == 0 || i == 0x80000000 && j == -1)
  144. ~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~
  145. Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp:1390:33: note: place parentheses around the '&&' expression to silence this warning
  146. if( j == 0 || i == 0x80000000 && j == -1)
  147. ^
  148. ( )
  149. 1 warning generated.
  150.  
  151.  
  152.  
  153.  
  154. In file included from Source/Core/DolphinWX/Src/CheatsWindow.cpp:26:
  155. In file included from Source/Core/DolphinWX/Src/Frame.h:36:
  156. Source/Core/DolphinWX/Src/TASInputDlg.h:49:8: warning: 'TASInputDlg::HasFocus' hides overloaded virtual function [-Woverloaded-virtual]
  157. bool HasFocus();
  158. ^
  159. Externals/wxWidgets3/include/wx/window.h:655:18: note: hidden overloaded virtual function 'wxWindowBase::HasFocus' declared here
  160. virtual bool HasFocus() const;
  161. ^
  162. 1 warning generated.
  163.  
  164. ^ This last warning repeats MANY MANY TIMES.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement