Skip to content

Commit

Permalink
fix some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 26, 2019
1 parent fe0fd55 commit 6462005
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/3rdParty/salomesmesh/src/SMESH/MED_Utilities.cpp
Expand Up @@ -45,8 +45,9 @@ MED::PrefixPrinter::~PrefixPrinter()
{
if(myIsActive){
myCounter--;
if(myCounter < 0)
EXCEPTION(runtime_error,"PrefixPrinter::~PrefixPrinter() - myCounter("<<myCounter<<") < 0");
//Do not throw exceptions from inside destructors
//if(myCounter < 0)
// EXCEPTION(runtime_error,"PrefixPrinter::~PrefixPrinter() - myCounter("<<myCounter<<") < 0");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Path/libarea/PythonStuff.cpp
Expand Up @@ -76,7 +76,7 @@ static void print_curve(const CCurve& c)
#if defined SIZEOF_SIZE_T && SIZEOF_SIZE_T == 4
printf("number of vertices = %d\n", nvertices);
#else
printf("number of vertices = %lu\n", nvertices);
printf("number of vertices = %Iu\n", nvertices);
#endif
int i = 0;
for(std::list<CVertex>::const_iterator It = c.m_vertices.begin(); It != c.m_vertices.end(); It++, i++)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Path/libarea/pyarea.cpp
Expand Up @@ -47,7 +47,7 @@ static void print_curve(const CCurve& c)
#if defined SIZEOF_SIZE_T && SIZEOF_SIZE_T == 4
printf("number of vertices = %d\n", nvertices);
#else
printf("number of vertices = %lu\n", nvertices);
printf("number of vertices = %Iu\n", nvertices);
#endif
int i = 0;
for(std::list<CVertex>::const_iterator It = c.m_vertices.begin(); It != c.m_vertices.end(); It++, i++)
Expand Down

0 comments on commit 6462005

Please sign in to comment.