diff --git a/.clang-tidy b/.clang-tidy index eaef0e5123..9853876b58 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,3 +1,3 @@ -Checks: 'clang-diagnostic-*,performance-*,unused-*,misc-*,-misc-macro-parentheses,readability-redundant-*' +Checks: 'clang-diagnostic-*,performance-*,unused-*,misc-*,-misc-macro-parentheses,readability-redundant-*,-readability-redundant-declaration' WarningsAsErrors: '*' diff --git a/common/Png.hpp b/common/Png.hpp index b4ff059e44..3e2b473585 100644 --- a/common/Png.hpp +++ b/common/Png.hpp @@ -160,14 +160,14 @@ bool encodeBufferToPNG(unsigned char* pixmap, int width, int height, } inline -uint64_t hashBuffer(unsigned char* pixmap, int width, int height) +uint64_t hashBuffer(unsigned char* pixmap, long width, long height) { return SpookyHash::Hash64(pixmap, width * height * 4, 1073741789); } inline uint64_t hashSubBuffer(unsigned char* pixmap, size_t startX, size_t startY, - int width, int height, int bufferWidth, int bufferHeight) + long width, long height, int bufferWidth, int bufferHeight) { if (bufferWidth < width || bufferHeight < height) return 0; // magic invalid hash.