On 11/14/2014 11:49 AM, Alexandru Badicioiu wrote:
> Hi,
> for build errors - which compiler/toolchain do you use? I did not modify
> in any way compilation flags and I have no problem with building with a
> PPC toolchain and also with the native gcc on my development machine? I
> use CUnit-2.1-3.
>
> WARNING: braces {} are not necessary for any arm of this statement
> #304: FILE: test/cunit/crypto/odp_crypto_test_async_inp.c:114:
> + if (compl_new == ODP_BUFFER_INVALID) {
> [...]
> + } else {
> [...]
> If we remove the braces the test will not compile, it seems the CUnit
> macros are the problem.
I've notices the same issue with CUnit macros. But it is strange.
CU_ASSERT defined like
#define CU_ASSERT(value) \
{ CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_FALSE);
}
So it already has {} around it.
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp