From efb3eb4a6b57b67b0103211380fe5924a05f3440 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 6 May 2021 17:14:56 -0400 Subject: Strengthen clang-tidy warnings --- src/.clang-tidy | 2 -- src/implementation.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/.clang-tidy b/src/.clang-tidy index 0178deb..2ee3372 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -3,11 +3,9 @@ Checks: > -*-uppercase-literal-suffix, -*magic-numbers, -bugprone-reserved-identifier, - -bugprone-suspicious-string-compare, -cert-dcl37-c, -cert-dcl51-cpp, -cert-flp30-c, - -clang-diagnostic-unused-macros, -hicpp-multiway-paths-covered, -hicpp-signed-bitwise, -llvm-header-guard, diff --git a/src/implementation.c b/src/implementation.c index 6225ac5..ad0de63 100644 --- a/src/implementation.c +++ b/src/implementation.c @@ -445,7 +445,7 @@ puglSetInternalClipboard(PuglView* const view, const void* const data, const size_t len) { - if (type && strcmp(type, "text/plain")) { + if (type && !!strcmp(type, "text/plain")) { return PUGL_UNSUPPORTED_TYPE; } -- cgit v1.2.1