Archived issue #0029021

Coding Rules - eliminate GCC warnings in Qt sample

Open CASCADEOCCT:Codingclosed5 public notes

Search issues

Description

The following warnings in Qt sample should be eliminated:
ApplicationCommon.cxx:24, GNU C Compiler 4 (gcc), Priority: Normal
when initialized here [-Wreorder]

ApplicationCommon.cxx:364, GNU C Compiler 4 (gcc), Priority: Normal
'fileQuitAction' may be used uninitialized in this function [-Wmaybe-uninitialized]

ApplicationCommon.cxx:383, GNU C Compiler 4 (gcc), Priority: Normal
'windowAction' may be used uninitialized in this function [-Wmaybe-uninitialized]

ApplicationCommon.h:75, GNU C Compiler 4 (gcc), Priority: Normal
'QToolBar* ApplicationCommonWindow::myStdToolBar' [-Wreorder]

ApplicationCommon.h:76, GNU C Compiler 4 (gcc), Priority: Normal
'QToolBar* ApplicationCommonWindow::myCasCadeBar' [-Wreorder]

ApplicationCommon.h:76, GNU C Compiler 4 (gcc), Priority: Normal
'ApplicationCommonWindow::myCasCadeBar' will be initialized after [-Wreorder]

ApplicationCommon.h:77, GNU C Compiler 4 (gcc), Priority: Normal
'ApplicationCommonWindow::myFilePopup' will be initialized after [-Wreorder]

ApplicationCommon.h:77, GNU C Compiler 4 (gcc), Priority: Normal
'QMenu* ApplicationCommonWindow::myFilePopup' [-Wreorder]

ApplicationCommon.h:78, GNU C Compiler 4 (gcc), Priority: Normal
'ApplicationCommonWindow::myWindowPopup' will be initialized after [-Wreorder]

MDIWindow.cxx:146, GNU C Compiler 4 (gcc), Priority: Normal
'mainWidget' may be used uninitialized in this function [-Wmaybe-uninitialized]

View.cxx:1056, GNU C Compiler 4 (gcc), Priority: Normal
'Standard_Boolean V3d_View::Export(Standard_CString, Graphic3d_ExportFormat, Graphic3d_SortType)' is deprecated (declared at ../../../inc/V3d_View.hxx:809): Export to Vector graphic is incompatible with Programmable Pipeline and should not be used [-Wdeprecated-declarations]

Translate.cxx:271, GNU C Compiler 4 (gcc), Priority: Normal
'status' may be used uninitialized in this function [-Wmaybe-uninitialized]

Translate.cxx:514, GNU C Compiler 4 (gcc), Priority: Normal
enumeration value 'IFSelect_RetDone' not handled in switch [-Wswitch]

Translate.cxx:514, GNU C Compiler 4 (gcc), Priority: Normal
enumeration value 'IFSelect_RetStop' not handled in switch [-Wswitch]

BaseDriver.cpp:54, GNU C Compiler 4 (gcc), Priority: Normal
unused parameter 'log' [-Wunused-parameter]

SimpleDriver.cpp:62, GNU C Compiler 4 (gcc), Priority: Normal
unused parameter 'log' [-Wunused-parameter]

Steps to reproduce

N/A

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Sat Aug 19 14:40:40 2017 +0300

    0029021: Coding Rules - eliminate GCC warnings in Qt sample
02Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
03Author
04Commenter 1
QT samples have been compiled on Linux and Windows platform on combination -
OCCT branch : [archived branch] : [revision removed]
Products branch : [archived branch]
Linux :
OCCT: 0 (16 on master)
Products: 228 (242 on master)
Windows
OCCT: 1 (4 on master)
05Commenter 2
Branch [archived branch] has been deleted by Author.

[revision removed]