MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #30684 All Revisions ] Back to Issue ]
Summary 0030684: Coding Rules - eliminate GCC compiler warnings -Wformat-overflow and -Wcatch-value
Revision 2019-04-29 22:34 by kgv
Description The following GCC 8.3.0 compiler warnings on Ubuntu 19.04 should be eliminated:
/occt.git/src/XSControl/XSControl_FuncShape.cxx:306: warning: ‘%d’ directive writing between 1 and 
11 bytes into a region of size between 0 and 99 [-Wformat-overflow=]
       sprintf (noms,"%s_%d",nomsh,i);
                     ^~~~~~~
/occt.git/src/Storage/Storage_TypeData.cxx:59: warning: catching polymorphic type ‘class Storage_StreamTypeMismatchError’ 
by value [-Wcatch-value=]
     catch (Storage_StreamTypeMismatchError)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Revision 2019-04-29 22:34 by kgv
Description The following compiler warnings on Ubuntu 19.04 should be eliminated:
/occt.git/src/XSControl/XSControl_FuncShape.cxx:306: warning: ‘%d’ directive writing between 1 and 
11 bytes into a region of size between 0 and 99 [-Wformat-overflow=]
       sprintf (noms,"%s_%d",nomsh,i);
                     ^~~~~~~
/occt.git/src/Storage/Storage_TypeData.cxx:59: warning: catching polymorphic type ‘class Storage_StreamTypeMismatchError’ 
by value [-Wcatch-value=]
     catch (Storage_StreamTypeMismatchError)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker