mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 13:26:37 +00:00
Fix build break
This commit is contained in:
parent
c24ede2d4a
commit
de3ad1b146
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-*,modernize-*,bugprone-*,misc-*,-misc-unused-parameters,google-runtime-int,-llvm-header-guard,fuchsia-restrict-system-includes,-clang-analyzer-valist.Uninitialized,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-alpha.*,-readability-magic-numbers,-readability-braces-around-statements,-readability-function-cognitive-complexity,-readability-identifier-length,-readability-isolate-declaration,-readability-suspicious-call-argument,-bugprone-easily-swappable-parameters,-bugprone-narrowing-conversions,-bugprone-reserved-identifier'
|
Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-*,modernize-*,bugprone-*,misc-*,-misc-unused-parameters,google-runtime-int,-llvm-header-guard,fuchsia-restrict-system-includes,-clang-analyzer-valist.Uninitialized,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-alpha.*,-modernize-macro-to-enum,-readability-magic-numbers,-readability-braces-around-statements,-readability-function-cognitive-complexity,-readability-identifier-length,-readability-isolate-declaration,-readability-suspicious-call-argument,-bugprone-easily-swappable-parameters,-bugprone-narrowing-conversions,-bugprone-reserved-identifier'
|
||||||
WarningsAsErrors: '*'
|
WarningsAsErrors: '*'
|
||||||
HeaderFilterRegex: '.*(?<!lookup3.c)$'
|
HeaderFilterRegex: '.*(?<!lookup3.c)$'
|
||||||
FormatStyle: 'file'
|
FormatStyle: 'file'
|
||||||
|
|
|
@ -6675,7 +6675,7 @@ begin:
|
||||||
if (cfgsort[cfg.curctx] == 'z')
|
if (cfgsort[cfg.curctx] == 'z')
|
||||||
set_sort_flags('c');
|
set_sort_flags('c');
|
||||||
if ((!cfgsort[cfg.curctx] || (cfgsort[cfg.curctx] == 'c'))
|
if ((!cfgsort[cfg.curctx] || (cfgsort[cfg.curctx] == 'c'))
|
||||||
&& ((r = get_kv_key(order, path, maxorder, NNN_ORDER)) > 0)) {
|
&& ((r = get_kv_key(order, path, maxorder, NNN_ORDER)) > 0)) { // NOLINT
|
||||||
set_sort_flags(r);
|
set_sort_flags(r);
|
||||||
cfgsort[cfg.curctx] = 'z';
|
cfgsort[cfg.curctx] = 'z';
|
||||||
}
|
}
|
||||||
|
@ -7986,7 +7986,8 @@ static char *load_input(int fd, const char *path)
|
||||||
total_read += input_read;
|
total_read += input_read;
|
||||||
|
|
||||||
while (off < total_read) {
|
while (off < total_read) {
|
||||||
if ((next = memchr(input + off, '\0', total_read - off)) == NULL)
|
next = memchr(input + off, '\0', total_read - off);
|
||||||
|
if (!next)
|
||||||
break;
|
break;
|
||||||
++next;
|
++next;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue