>From: Johannes Obermayr <johannesoberm...@gmx.de> >To: mesa3d-dev <mesa3d-dev@lists.sourceforge.net> >Sent: Sun, March 14, 2010 1:30:27 PM >Subject: [Mesa3d-dev] Compiler warnings when building Mesa > >Hi, > >here is a list with compiler warnings I have seen for a longer time. > >Just for info: >libdrm: 20100313 >XServer: 1.7.5 >protos/macros: 20100311 > >I can also provide a full log (~1.4 MiB). > >Please decide whether fixing them is necessary/worth ... > >Thanks. >Johannes
I sent patches for some of the warnings I found recently. Most were accepted, and one is still under review (for the dri2_glx.c warnings). Most of the warnings are related to pointer casting, or unreferenced code. But one of the remaining warnings appears to point to a real issue: ... brw_vs_emit.c: In function 'brw_vs_emit': brw_vs_emit.c:1156: warning: array subscript is above array bounds ... c->regs is declared [TGSI_FILE_COUNT][128] , where TGSI_FILE_COUNT = 11 but this line tries to reference c->regs[TGSI_FILE_OUTPUT][VERT_RESULT_PSIZ] , where TGSI_FILE_OUTPUT = 3 and VERT_RESULT_PSIZ is #defined as 10000 ! -- Jeff ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev