diff mbox

[1/3] debug: Fix ODP_STATIC_ASSERT

Message ID 1405963033-29230-2-git-send-email-taras.kondratiuk@linaro.org
State Accepted
Commit f0eedc78beb313a01c8ecbb0b4140fa75e00733f
Headers show

Commit Message

Taras Kondratiuk July 21, 2014, 5:17 p.m. UTC
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(-)

Comments

Anders Roxell July 22, 2014, 8:56 p.m. UTC | #1
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
Mike Holmes July 22, 2014, 9:13 p.m. UTC | #2
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 mbox

Patch

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.