On 2015-02-16 18:19, bugzilla-dae...@bugs.linaro.org wrote:
> Mike Holmes <mailto:mike.hol...@linaro.org> changed bug 300
> <https://bugs.linaro.org/show_bug.cgi?id=300>
> What  Removed         Added
> Resolution    ---     WONTFIX
> Status        CONFIRMED       RESOLVED
> 
> *Comment # 5 <https://bugs.linaro.org/show_bug.cgi?id=300#c5> on bug 300
> <https://bugs.linaro.org/show_bug.cgi?id=300> from Mike Holmes
> <mailto:mike.hol...@linaro.org> *
> 
> pedantic has not been adopted for the ODP build flags, this will not be fixed
> at this time

This is another thing which doesn't work when including ODP headers from
C++ code. A patch to fix it can be found below, but might not be what
you want to do.

// Simon

commit 6997dddc8658eee3de7a18de6a510365d2783253
Author: Simon Kagstrom <simon.kagst...@netinsight.net>
Date:   Tue Feb 17 08:08:04 2015 +0100

    debug: Use static_assert(cond,msg) for C++ code

diff --git a/include/odp/api/debug.h b/include/odp/api/debug.h
index 5949680..cb9de64 100644
--- a/include/odp/api/debug.h
+++ b/include/odp/api/debug.h
@@ -14,8 +14,8 @@


 #ifdef __cplusplus
-extern "C" {
-#endif
+#define _ODP_STATIC_ASSERT(cond, msg)  static_assert(cond, msg)
+#else

 /** @addtogroup odp_ver_abt_log_dbg
  *  Macros that allows different messages.
@@ -50,9 +50,6 @@ extern "C" {
 /**
  * @}
  */
-
-#ifdef __cplusplus
-}
 #endif

 #endif

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to