]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Suppress Clang-Tidy warning about including signal.h
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 6 Jan 2021 20:29:37 +0000 (21:29 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 6 Jan 2021 20:29:37 +0000 (21:29 +0100)
sigaddset and similar functions are specified by POSIX to be in signal.h
and the C++ csignal header only contains a subset of the signal.h
declarations.

Related to PR #758.

src/SignalHandler.cpp

index 7c6a579044c16c1da2f7aa49076f6a9b371d3445..8a07cc7e1a12a11f55564fbc854a00189992f590 100644 (file)
@@ -23,7 +23,7 @@
 #  include "Context.hpp"
 #  include "assertions.hpp"
 
-#  include <signal.h>
+#  include <signal.h> // NOLINT: sigaddset et al are defined in signal.h
 
 namespace {