Advertisement
pauldacheez

perfqueries Clang warnings

Aug 26th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. /Users/Paul/Desktop/Food/Dolphin/dolphin-emu-perfqueries/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp:67:29: warning: array index 3 is past the end of the array (which contains 3 elements)
  2. [-Warray-bounds]
  3. results[PQ_BLEND_INPUT] = results[PQ_ZCOMP_OUTPUT] + results[PQ_ZCOMP_OUTPUT_ZCOMPLOC];
  4. ^ ~~~~~~~~~~~~~~~
  5. /Users/Paul/Desktop/Food/Dolphin/dolphin-emu-perfqueries/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp:6:1: note: array 'results' declared here
  6. u32 results[PQG_NUM_MEMBERS] = { 0 };
  7. ^
  8. /Users/Paul/Desktop/Food/Dolphin/dolphin-emu-perfqueries/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp:67:3: warning: array index 4 is past the end of the array (which contains 3 elements)
  9. [-Warray-bounds]
  10. results[PQ_BLEND_INPUT] = results[PQ_ZCOMP_OUTPUT] + results[PQ_ZCOMP_OUTPUT_ZCOMPLOC];
  11. ^ ~~~~~~~~~~~~~~
  12. /Users/Paul/Desktop/Food/Dolphin/dolphin-emu-perfqueries/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp:6:1: note: array 'results' declared here
  13. u32 results[PQG_NUM_MEMBERS] = { 0 };
  14. ^
  15. 2 warnings generated.
  16. /Users/Paul/Desktop/Food/Dolphin/dolphin-emu-perfqueries/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp:67:29: warning: array index 3 is past the end of the array (which contains 3 elements)
  17. [-Warray-bounds]
  18. results[PQ_BLEND_INPUT] = results[PQ_ZCOMP_OUTPUT] + results[PQ_ZCOMP_OUTPUT_ZCOMPLOC];
  19. ^ ~~~~~~~~~~~~~~~
  20. /Users/Paul/Desktop/Food/Dolphin/dolphin-emu-perfqueries/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp:6:1: note: array 'results' declared here
  21. u32 results[PQG_NUM_MEMBERS] = { 0 };
  22. ^
  23. /Users/Paul/Desktop/Food/Dolphin/dolphin-emu-perfqueries/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp:67:3: warning: array index 4 is past the end of the array (which contains 3 elements)
  24. [-Warray-bounds]
  25. results[PQ_BLEND_INPUT] = results[PQ_ZCOMP_OUTPUT] + results[PQ_ZCOMP_OUTPUT_ZCOMPLOC];
  26. ^ ~~~~~~~~~~~~~~
  27. /Users/Paul/Desktop/Food/Dolphin/dolphin-emu-perfqueries/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp:6:1: note: array 'results' declared here
  28. u32 results[PQG_NUM_MEMBERS] = { 0 };
  29. ^
  30. 2 warnings generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement