diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-09-06 11:53:02 +1000 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-09-25 15:55:01 -0400 |
commit | a114286c079c42067b001ac330501496e2e297a1 (patch) | |
tree | 7e620fe9e0abc8cf081c8a7ddff5f10cf9d1c145 | |
parent | d230e12d7dac4461626d0c6edfd692571592a280 (diff) |
test: fix compiler warning
signal-logging.c:182:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit ea82ececbf85a7ac3d0931687f44c57534fde17c)
-rw-r--r-- | test/signal-logging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/signal-logging.c b/test/signal-logging.c index 3d2d04801..7f2972003 100644 --- a/test/signal-logging.c +++ b/test/signal-logging.c @@ -177,7 +177,7 @@ static void logging_format(void) strcpy(&buf[sizeof(buf) - 4], "end"); LogInit(log_file_path, NULL); - assert(f = fopen(log_file_path, "r")); + assert((f = fopen(log_file_path, "r"))); #define read_log_msg(msg) do { \ msg = fgets(read_buf, sizeof(read_buf), f); \ |