diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-05-05 22:28:59 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-05-05 22:56:35 +0100 |
commit | 48bd200acbf4b4d8f3fa241373477b3a21001d17 (patch) | |
tree | 732cd71532990452c9d7c07920265ed272f3e6c9 /toxcore/tox.c | |
parent | c1a2ea3309969608a5553c34fa4199b05f20abc2 (diff) |
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;
```
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
400 | 400 | ||
401 | Messenger_Options m_options = {0}; | 401 | Messenger_Options m_options = {0}; |
402 | 402 | ||
403 | bool load_savedata_sk = false, load_savedata_tox = false; | 403 | bool load_savedata_sk = false; |
404 | bool load_savedata_tox = false; | ||
404 | 405 | ||
405 | struct Tox_Options *default_options = nullptr; | 406 | struct Tox_Options *default_options = nullptr; |
406 | 407 | ||