]> git.ipfire.org Git - thirdparty/nettle.git/commit
Move expressions with side effects out of asserts
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Sat, 17 Feb 2018 09:57:12 +0000 (12:57 +0300)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 18 Feb 2018 08:55:45 +0000 (09:55 +0100)
commit3d6edbc208330168450f85b49cf4aa9cde597956
treeaa57b7dcdc487ee3832c1d022fb4d4171c066448
parentac8e081ebbc61f732abbf9fc7f156152329e4b30
Move expressions with side effects out of asserts

It is wrong to use expressions with side-effects in asserts, they can
easily be compiled away. Move them out of assert() macro and just
compare the result.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
examples/nettle-openssl.c