]> git.ipfire.org Git - thirdparty/tor.git/commit
Suppress a clang 12 warning about "suspicious concatenation".
authorNick Mathewson <nickm@torproject.org>
Thu, 1 Jul 2021 17:03:19 +0000 (13:03 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 1 Jul 2021 17:03:19 +0000 (13:03 -0400)
commit2bc02b21992825e1e348f83c31ebbe0ddcee0b9b
treeae1a811ae8fbf72299d372c2cb57511477dea5fa
parente60d14bb6b772c3f376a9be725899e40cea5087d
Suppress a clang 12 warning about "suspicious concatenation".

My clang doesn't like it when we write code like this:

    char *list[] = {
       "abc",
       "def",
       "ghi"
       "jkl"
    }

It wonders whether we meant to put a comma between "ghi" and "jkl"
or not, and gives a warning.

To suppress this warning (since in this case, we did mean to omit
the comma), we just wrap the two strings in parentheses.

Closes #40426; bugfix on 0.4.0.4-rc.
src/test/test_dir.c