diff options
author | Vitaly Chikunov <vt@altlinux.org> | 2020-02-10 08:38:08 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2020-02-10 11:28:23 +0300 |
commit | 7e6ed644cf97385a95544fcc889e2eb16bcc93ed (patch) | |
tree | 1e725f9a8d4388556b0fb5d51d20ab2c7438530f | |
parent | 66253948abbb95c04dcf5e2d302feefb55c52a7a (diff) | |
download | gost-engine-7e6ed644cf97385a95544fcc889e2eb16bcc93ed.zip gost-engine-7e6ed644cf97385a95544fcc889e2eb16bcc93ed.tar.gz gost-engine-7e6ed644cf97385a95544fcc889e2eb16bcc93ed.tar.bz2 |
elbrus: Workaround `-Werror=assign-where-compare-meant'
This is lcc bug. Curiously, it is not triggered in `test_context.c' and
`test_grasshopper.c'.
"lcc: "/usr/src/gost-engine/test_curves.c", строка 32: ошибка:
вероятное использование "=" вместо "=="
[-Werror=assign-where-compare-meant]
#define TEST_ASSERT(e) {if ((test = (e))) \
^
в раскрытие макроса "TEST_ASSERT" на строке 217
TEST_ASSERT(0);"
-rw-r--r-- | test_curves.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test_curves.c b/test_curves.c index 973307b..2761767 100644 --- a/test_curves.c +++ b/test_curves.c @@ -29,10 +29,13 @@ #define cBLUE "\033[1;34m" #define cDBLUE "\033[0;34m" #define cNORM "\033[m" -#define TEST_ASSERT(e) {if ((test = (e))) \ - printf(cRED " Test FAILED\n" cNORM); \ - else \ - printf(cGREEN " Test passed\n" cNORM);} +#define TEST_ASSERT(e) { \ + test = e; \ + if (test) \ + printf(cRED " Test FAILED\n" cNORM); \ + else \ + printf(cGREEN " Test passed\n" cNORM); \ +} struct test_curve { int nid; |