From 8aa5510513719f3a8e40a6faf6749fdfc44490d2 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 31 Jan 2016 11:26:52 +0100 Subject: Ignore warnings only locally --- sinksh/CMakeLists.txt | 2 -- sinksh/repl/replStates.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sinksh/CMakeLists.txt b/sinksh/CMakeLists.txt index 521c740..90abaec 100644 --- a/sinksh/CMakeLists.txt +++ b/sinksh/CMakeLists.txt @@ -2,8 +2,6 @@ project(sinksh) find_package(Readline REQUIRED) -add_definitions("-Wno-undefined-reinterpret-cast") - set(sink_cli_SRCS main.cpp syntaxtree.cpp diff --git a/sinksh/repl/replStates.cpp b/sinksh/repl/replStates.cpp index 43b1353..5bfc064 100644 --- a/sinksh/repl/replStates.cpp +++ b/sinksh/repl/replStates.cpp @@ -168,4 +168,6 @@ static char *sink_cli_next_tab_complete_match(const char *text, int state) return rl_filename_completion_function(text, state); } +//Ignore warning I don't know how to fix in a moc file +#pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" #include "moc_replStates.cpp" -- cgit v1.2.3