From 48bd200acbf4b4d8f3fa241373477b3a21001d17 Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 5 May 2020 22:28:59 +0100 Subject: refactor: Disallow multiple initialised declarators per decl. We no longer allow: ```c int a = 0, b = 0; int a[3], b[3]; int a, *b; ``` But we do still allow (for now): ```c int a, b; ``` --- toxcore/tox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toxcore/tox.c') diff --git a/toxcore/tox.c b/toxcore/tox.c index d2d3ed34..780d9136 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -400,7 +400,8 @@ Tox *tox_new(const struct Tox_Options *options, Tox_Err_New *error) Messenger_Options m_options = {0}; - bool load_savedata_sk = false, load_savedata_tox = false; + bool load_savedata_sk = false; + bool load_savedata_tox = false; struct Tox_Options *default_options = nullptr; -- cgit v1.2.3