DiscussionsIssue archiveOCCT:Visualization

Archived issue #0024546

GCC compiler warnings in OpenGl

Open CASCADEOCCT:Visualizationclosed4 public notes

Search issues

Description

As far as I can see from last Jenkins logs (http://jenkins-test-02.nnov.opencascade.com:8080/user/inv/my-views/view/Accamulated%20statisticts%20for%20Master%20/job/mnt-master-master_build_occt_linux/), there are several new compiler warnings on Linux in the current master.

The first is likely brought by fix of #0024320:

OpenGl_Texture.hxx:152: ‘OpenGl_TextureFormat::myChannels’ will be initialized after
OpenGl_Texture.hxx:149: ‘GLint OpenGl_TextureFormat::myInternal’
OpenGl_Texture.hxx:139: when initialized here

The others are reported in a code which has not been touched for a while, and I wonder why most of them are not reported in previous build logs:

OpenGl_SceneGeometry.cxx:381: dereferencing type-punned pointer will break strict-aliasing rules

OpenGl_Workspace_2.cxx: ‘GLsizei getNearestPowOfTwo(GLsizei)’ defined but not used

OpenGl_Workspace_2.cxx:60: ‘void fitDimensionsRatio(Standard_Integer&, Standard_Integer&, Standard_Real)’ defined but not used

OpenGl_Workspace_Raytrace.cxx:104: ‘_cl_mem* clCreateImage2D(_cl_context*, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, void*, cl_int*)’ is deprecated (declared at /dn29/PRODUCTS/maintenance/unix_6.6.1/opencl-icd-[network address removed]-64/include/CL/cl.h:1170)

(6 places)

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 1
This warning will likely disappear if OpenCL code is eliminated in context of #0024739
02Commenter 2
It looks all the warnings above have been eliminated, though new ones appeared, reported in #0024875
03Commenter 3
Please comment if this issue should be closed or description to be updated.
04Commenter 4
I see no these warnings in recent build logs, consider it as fixed

Related records