[gl2ps] gl2ps / 1.4.0 / gcc-9.2 / bug in gl2psPDFgroupListWriteXObjectResources() ?

Guy Barrand guy.barrand at gmail.com
Tue Nov 12 11:18:18 CET 2019


   Hi Christophe

 gl2ps is indirectly tested/analysed by tools at CERN (because it is used in the visualisation of “Geant4”, a particle through matter simulation toolkit). I am using the gl2ps 1.4.0 code, and with gcc-9.2, CERN people say that there is a warning :

geant4/source/analysis/g4tools/include/tools/sg/../gl2ps:4042:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
4042 |       offs += fprintf(tools_gl2ps_context->stream, "/Im%d %d 0 R\n", gro->imno, gro->imobjno);
     | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
geant4/source/analysis/g4tools/include/tools/sg/../gl2ps:4043:5: note: here
4043 |     case TOOLS_GL2PS_TRIANGLE:
     |     ^~~~

 It looks that there is a “break:” missing in the gl2psPDFgroupListWriteXObjectResources() function before the "case GL2PS_TRIANGLE:” line of code.

  This time I am not so sure about this diagnostic, then I ask you… If not a bug, do you see a way to bypass this warning ?

   Thanks for any answer. Cheers. Guy

Guy Barrand
CNRS/IN2P3/LAL


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20191112/e9fea3cc/attachment.html>