• sundb's avatar
    Fix some compile warnings and errors when building with gcc-12 or clang (#12035) · 42c8c618
    sundb authored
    This PR is to fix the compilation warnings and errors generated by the latest
    complier toolchain, and to add a new runner of the latest toolchain for daily CI.
    
    ## Fix various compilation warnings and errors
    
    1) jemalloc.c
    
    COMPILER: clang-14 with FORTIFY_SOURCE
    
    WARNING:
    ```
    src/jemalloc.c:1028:7: warning: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Wstring-concatenation]
                        "/etc/malloc.conf",
                        ^
    src/jemalloc.c:1027:3: note: place parentheses around the string literal to silence warning
                    "\"name\" of the file referenced by the symbolic link named "
                    ^
    ```
    
    REASON:  the compiler to alert developers to potential issues with string concatenation
    that may miss a comma,
    just like #9534 which misses a comma.
    
    SOLUTION: use `()` to tell the compiler that these tw...
    42c8c618
redis-cli.c 371 KB