Unverified Commit e549f911 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

turn off variable tracking through turning off optimization for GCC 4.4 and later

This will avoid a difficult to interpret warning and in
addition speed up compilation of this one file by avoiding
to try to optimize something, that needs no optimization.
parent 34dca6dc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -53,6 +53,12 @@
#include "memory.h"
#include "error.h"

#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))
#pragma GCC optimize ("O0")
#endif
#endif

#include "lmpinstalledpkgs.h"
#include "lmpgitversion.h"