Skip to content

Commit

Permalink
warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
boazsegev committed Nov 15, 2023
1 parent 7a9c477 commit 3e6c0a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions fio-stl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3346,12 +3346,12 @@ SFUNC FIO___ASAN_AVOID size_t fio_strlen(const char *str) {
uint64_t map[8] FIO_ALIGN(16);
/* align to 4 bytes */
switch (start & 7) { // clang-format off
case 1: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 2: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 3: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 4: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 5: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 6: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 1: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 2: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 3: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 4: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 5: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 6: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 7: if(*str++ == 0) return (uintptr_t)(str-1) - start;
} // clang-format on
/* align to 64 bytes */
Expand Down
12 changes: 6 additions & 6 deletions fio-stl/001 memalt.h
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,12 @@ SFUNC FIO___ASAN_AVOID size_t fio_strlen(const char *str) {
uint64_t map[8] FIO_ALIGN(16);
/* align to 4 bytes */
switch (start & 7) { // clang-format off
case 1: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 2: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 3: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 4: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 5: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 6: if(*str++ == 0) return (uintptr_t)(str-1) - start;
case 1: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 2: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 3: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 4: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 5: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 6: if(*str++ == 0) return (uintptr_t)(str-1) - start; /* fall through */
case 7: if(*str++ == 0) return (uintptr_t)(str-1) - start;
} // clang-format on
/* align to 64 bytes */
Expand Down

0 comments on commit 3e6c0a4

Please sign in to comment.