From 6462005da1f4c7642cab151ca6c7737626cd665f Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 26 May 2019 14:35:09 +0200 Subject: [PATCH] fix some compiler warnings --- src/3rdParty/salomesmesh/src/SMESH/MED_Utilities.cpp | 5 +++-- src/Mod/Path/libarea/PythonStuff.cpp | 2 +- src/Mod/Path/libarea/pyarea.cpp | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/3rdParty/salomesmesh/src/SMESH/MED_Utilities.cpp b/src/3rdParty/salomesmesh/src/SMESH/MED_Utilities.cpp index d04b057624..0c5998272d 100644 --- a/src/3rdParty/salomesmesh/src/SMESH/MED_Utilities.cpp +++ b/src/3rdParty/salomesmesh/src/SMESH/MED_Utilities.cpp @@ -45,8 +45,9 @@ MED::PrefixPrinter::~PrefixPrinter() { if(myIsActive){ myCounter--; - if(myCounter < 0) - EXCEPTION(runtime_error,"PrefixPrinter::~PrefixPrinter() - myCounter("<::const_iterator It = c.m_vertices.begin(); It != c.m_vertices.end(); It++, i++) diff --git a/src/Mod/Path/libarea/pyarea.cpp b/src/Mod/Path/libarea/pyarea.cpp index 3f29e78644..f3fb2acbcb 100644 --- a/src/Mod/Path/libarea/pyarea.cpp +++ b/src/Mod/Path/libarea/pyarea.cpp @@ -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::const_iterator It = c.m_vertices.begin(); It != c.m_vertices.end(); It++, i++)