Commit a681366f authored by Adriaan de Groot's avatar Adriaan de Groot 💬

Reduce pre-processor warnings.

Clang 3.4.1, at least, doesn't seem to define LLVM_MAJOR.
parent 4a7070bf
......@@ -17,7 +17,7 @@
#include <KI18n/KLocalizedString>
#include <QtCore/QCommandLineParser>
#include <QIcon>
#if defined(__clang__) && (LLVM_MAJOR > 5)
#if defined(__clang__) && defined(LLVM_MAJOR) && (LLVM_MAJOR > 5)
#include <sanitizer/common_interface_defs.h>
#endif
......@@ -138,7 +138,7 @@ int main( int argc, char* argv[] )
app.init( parser );
#if defned(__clang__) && (LLVM_MAJOR > 5)
#if defined(__clang__) && defined(LLVM_MAJOR) && (LLVM_MAJOR > 5)
if (argc > 2)
__sanitizer_print_memory_profile(atoi(argv[1]), atoi(argv[2]));
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment