[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:
parent
6a5d6d0514
commit
af813a0929
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
2
libfreerdp/cache/persistent.c
vendored
2
libfreerdp/cache/persistent.c
vendored
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user