[cmake,clang-tidy] do not use explicit .clang-tidy

if not explicitly added the nearest .clang-tidy file to the compiled
source is used.
This commit is contained in:
akallabeth 2024-08-29 10:41:07 +02:00
parent 6a5d6d0514
commit af813a0929
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@
#define AUDIO_TOLERANCE 10000000LL
/* 1 second = 10,000,000 100ns units*/
#define VIDEO_ADJUST_MAX 10ULL * 1000ULL * 1000ULL
#define VIDEO_ADJUST_MAX (10ULL * 1000ULL * 1000ULL)
#define MAX_ACK_TIME 666667

View File

@ -4,7 +4,7 @@ if (BUILD_WITH_CLANG_TIDY)
include(ClangDetectTool)
clang_detect_tool(CLANG_TIDY_EXE clang-tidy REQUIRED)
set(CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE}" --config-file=${CMAKE_SOURCE_DIR}/.clang-tidy)
set(CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE}")
set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY_COMMAND}" --extra-arg=-std=gnu11)
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}" --extra-arg=-std=gnu++17)

View File

@ -207,7 +207,7 @@ static int persistent_cache_read_v3(rdpPersistentCache* persistent)
if (fread((void*)&entry, sizeof(entry), 1, persistent->fp) != 1)
break;
if (fseek(persistent->fp, (4ULL * entry.width * entry.height), SEEK_CUR) != 0)
if (_fseeki64(persistent->fp, (4LL * entry.width * entry.height), SEEK_CUR) != 0)
break;
persistent->count++;