summaryrefslogtreecommitdiff
path: root/toxcore/tox.api.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-23 02:22:38 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-02-24 22:20:22 +0000
commitd3b286cb434ed228e7b62cc70cb293e7a5554bfa (patch)
tree9ab3dd66f9dba2ca861ba8c6e098fb96754aa80b /toxcore/tox.api.h
parentafc80922e720f5d2a93bdfb3745da058e5ddf81b (diff)
Fix a bunch of compiler warnings and remove suppressions.
Diffstat (limited to 'toxcore/tox.api.h')
-rw-r--r--toxcore/tox.api.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h
index 493307e9..fc5d5593 100644
--- a/toxcore/tox.api.h
+++ b/toxcore/tox.api.h
@@ -188,19 +188,19 @@ const VERSION_PATCH = 0;
188 * features, but can't break the API. 188 * features, but can't break the API.
189 */ 189 */
190#define TOX_VERSION_IS_API_COMPATIBLE(MAJOR, MINOR, PATCH) \ 190#define TOX_VERSION_IS_API_COMPATIBLE(MAJOR, MINOR, PATCH) \
191 (TOX_VERSION_MAJOR > 0 && TOX_VERSION_MAJOR == MAJOR) && ( \ 191 ((TOX_VERSION_MAJOR > 0 && TOX_VERSION_MAJOR == MAJOR) && ( \
192 /* 1.x.x, 2.x.x, etc. with matching major version. */ \ 192 /* 1.x.x, 2.x.x, etc. with matching major version. */ \
193 TOX_VERSION_MINOR > MINOR || \ 193 TOX_VERSION_MINOR > MINOR || \
194 TOX_VERSION_MINOR == MINOR && TOX_VERSION_PATCH >= PATCH \ 194 (TOX_VERSION_MINOR == MINOR && TOX_VERSION_PATCH >= PATCH) \
195 ) || (TOX_VERSION_MAJOR == 0 && MAJOR == 0) && ( \ 195 )) || ((TOX_VERSION_MAJOR == 0 && MAJOR == 0) && ( \
196 /* 0.x.x makes minor behave like major above. */ \ 196 /* 0.x.x makes minor behave like major above. */ \
197 (TOX_VERSION_MINOR > 0 && TOX_VERSION_MINOR == MINOR) && ( \ 197 ((TOX_VERSION_MINOR > 0 && TOX_VERSION_MINOR == MINOR) && ( \
198 TOX_VERSION_PATCH >= PATCH \ 198 TOX_VERSION_PATCH >= PATCH \
199 ) || (TOX_VERSION_MINOR == 0 && MINOR == 0) && ( \ 199 )) || ((TOX_VERSION_MINOR == 0 && MINOR == 0) && ( \
200 /* 0.0.x and 0.0.y are only compatible if x == y. */ \ 200 /* 0.0.x and 0.0.y are only compatible if x == y. */ \
201 TOX_VERSION_PATCH == PATCH \ 201 TOX_VERSION_PATCH == PATCH \
202 ) \ 202 )) \
203 ) 203 ))
204 204
205static namespace version { 205static namespace version {
206 206