Message ID | 1405963033-29230-2-git-send-email-taras.kondratiuk@linaro.org |
---|---|
State | Accepted |
Commit | f0eedc78beb313a01c8ecbb0b4140fa75e00733f |
Headers | show |
On 2014-07-21 20:17, Taras Kondratiuk wrote: > GCC provides _Static_assert() function. > > Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> > --- > include/odp_debug.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/odp_debug.h b/include/odp_debug.h > index 166716d..edc775f 100644 > --- a/include/odp_debug.h > +++ b/include/odp_debug.h > @@ -46,7 +46,7 @@ extern "C" { > * Compile time assertion-macro - fail compilation if cond is false. > * @note This macro has zero runtime overhead > */ > -#define ODP_STATIC_ASSERT(cond, msg) _static_assert(cond, msg) > +#define ODP_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg) > > /** > * Debug printing macro, which prints output when DEBUG flag is set. > -- > 1.7.9.5 > > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/lng-odp
Tested-by: Mike Holmes <mike.holmes@linaro.org> On 22 July 2014 16:56, Anders Roxell <anders.roxell@linaro.org> wrote: > On 2014-07-21 20:17, Taras Kondratiuk wrote: > > GCC provides _Static_assert() function. > > > > Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> > > Reviewed-by: Anders Roxell <anders.roxell@linaro.org> > > > --- > > include/odp_debug.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/include/odp_debug.h b/include/odp_debug.h > > index 166716d..edc775f 100644 > > --- a/include/odp_debug.h > > +++ b/include/odp_debug.h > > @@ -46,7 +46,7 @@ extern "C" { > > * Compile time assertion-macro - fail compilation if cond is false. > > * @note This macro has zero runtime overhead > > */ > > -#define ODP_STATIC_ASSERT(cond, msg) _static_assert(cond, msg) > > +#define ODP_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg) > > > > /** > > * Debug printing macro, which prints output when DEBUG flag is set. > > -- > > 1.7.9.5 > > > > > > _______________________________________________ > > lng-odp mailing list > > lng-odp@lists.linaro.org > > http://lists.linaro.org/mailman/listinfo/lng-odp > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/lng-odp >
diff --git a/include/odp_debug.h b/include/odp_debug.h index 166716d..edc775f 100644 --- a/include/odp_debug.h +++ b/include/odp_debug.h @@ -46,7 +46,7 @@ extern "C" { * Compile time assertion-macro - fail compilation if cond is false. * @note This macro has zero runtime overhead */ -#define ODP_STATIC_ASSERT(cond, msg) _static_assert(cond, msg) +#define ODP_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg) /** * Debug printing macro, which prints output when DEBUG flag is set.
GCC provides _Static_assert() function. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> --- include/odp_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)