diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-07-01 13:03:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-07-01 13:03:19 -0400 |
commit | 2bc02b21992825e1e348f83c31ebbe0ddcee0b9b (patch) | |
tree | ae1a811ae8fbf72299d372c2cb57511477dea5fa /src | |
parent | e60d14bb6b772c3f376a9be725899e40cea5087d (diff) | |
download | tor-2bc02b21992825e1e348f83c31ebbe0ddcee0b9b.tar.gz tor-2bc02b21992825e1e348f83c31ebbe0ddcee0b9b.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index d62dd3fb9e..467b740d71 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -2135,8 +2135,8 @@ test_dir_measured_bw_kb(void *arg) /* Test that a line with vote=0 will fail too, so that it is ignored. */ "node_id=$557365204145532d32353620696e73746561642e bw=1024 vote=0\n", /* Test that a line with vote=0 will fail even if unmeasured=0. */ - "node_id=$557365204145532d32353620696e73746561642e bw=1024 vote=0 " - "unmeasured=0\n", + ("node_id=$557365204145532d32353620696e73746561642e bw=1024 vote=0 " + "unmeasured=0\n"), "end" }; |