changeset 2080:bb93de4f4562

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 07 Sep 2016 09:05:35 +0200
parents acb4cd4af771 (diff) 93afa6134ab3 (current diff)
children 681e9ea81581
files
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Thu Sep 01 16:54:35 2016 +0200
+++ b/OrthancServer/main.cpp	Wed Sep 07 09:05:35 2016 +0200
@@ -1086,6 +1086,14 @@
 }
 
 
+static bool DisplayPerformanceWarning()
+{
+  (void) DisplayPerformanceWarning;   // Disable warning about unused function
+  LOG(WARNING) << "Performance warning: Non-release build, runtime debug assertions are turned on";
+  return true;
+}
+
+
 int main(int argc, char* argv[]) 
 {
   Logging::Initialize();
@@ -1225,6 +1233,7 @@
     }
 
     LOG(WARNING) << "Orthanc version: " << version;
+    assert(DisplayPerformanceWarning());
   }
 
   int status = 0;