Fix script create_assertions.sh to remove a warning when gcc is called with -fasm-blocks option on MacOSX.

This commit is contained in:
Stéphane Tayeb
2009-10-06 15:43:51 +00:00
parent c3536e760a
commit 8dca39193a
+77 -2
View File
@@ -46,15 +46,18 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
// $Id$
//
//
// Author(s) : Geert-Jan Giezeman, Sven Schönherr
// Author(s) : script by Geert-Jan Giezeman and Sven Schoenherr
// Generated from script create_assertions.sh
// macro definitions
// =================
// assertions
// ----------
#undef CGAL_xxx_assertion
#undef CGAL_xxx_assertion_msg
#undef CGAL_xxx_assertion_code
#if defined(CGAL_XXX_NO_ASSERTIONS) || defined(CGAL_NO_ASSERTIONS) \
|| defined(NDEBUG)
@@ -70,6 +73,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_assertions 1
#endif // CGAL_XXX_NO_ASSERTIONS
#undef CGAL_xxx_exactness_assertion
#undef CGAL_xxx_exactness_assertion_msg
#undef CGAL_xxx_exactness_assertion_code
#if defined(CGAL_XXX_NO_ASSERTIONS) || defined(CGAL_NO_ASSERTIONS) \
|| (!defined(CGAL_XXX_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
|| defined(NDEBUG)
@@ -85,6 +93,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_exactness_assertions 1
#endif // CGAL_XXX_NO_ASSERTIONS
#undef CGAL_xxx_expensive_assertion
#undef CGAL_xxx_expensive_assertion_msg
#undef CGAL_xxx_expensive_assertion_code
#if defined(CGAL_XXX_NO_ASSERTIONS) \
|| defined(CGAL_NO_ASSERTIONS) \
|| (!defined(CGAL_XXX_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
@@ -101,6 +114,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_expensive_assertions 1
#endif // CGAL_XXX_NO_ASSERTIONS
#undef CGAL_xxx_expensive_exactness_assertion
#undef CGAL_xxx_expensive_exactness_assertion_msg
#undef CGAL_xxx_expensive_exactness_assertion_code
#if defined(CGAL_XXX_NO_ASSERTIONS) || defined(CGAL_NO_ASSERTIONS) \
|| (!defined(CGAL_XXX_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
|| (!defined(CGAL_XXX_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
@@ -121,6 +139,10 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
// preconditions
// -------------
#undef CGAL_xxx_precondition
#undef CGAL_xxx_precondition_msg
#undef CGAL_xxx_precondition_code
#if defined(CGAL_XXX_NO_PRECONDITIONS) || defined(CGAL_NO_PRECONDITIONS) \
|| defined(NDEBUG)
# define CGAL_xxx_precondition(EX) (static_cast<void>(0))
@@ -135,6 +157,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_preconditions 1
#endif // CGAL_XXX_NO_PRECONDITIONS
#undef CGAL_xxx_exactness_precondition
#undef CGAL_xxx_exactness_precondition_msg
#undef CGAL_xxx_exactness_precondition_code
#if defined(CGAL_XXX_NO_PRECONDITIONS) || defined(CGAL_NO_PRECONDITIONS) \
|| (!defined(CGAL_XXX_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
|| defined(NDEBUG)
@@ -150,6 +177,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_exactness_preconditions 1
#endif // CGAL_XXX_NO_PRECONDITIONS
#undef CGAL_xxx_expensive_precondition
#undef CGAL_xxx_expensive_precondition_msg
#undef CGAL_xxx_expensive_precondition_code
#if defined(CGAL_XXX_NO_PRECONDITIONS) || defined(CGAL_NO_PRECONDITIONS) \
|| (!defined(CGAL_XXX_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
|| defined(NDEBUG)
@@ -165,6 +197,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_expensive_preconditions 1
#endif // CGAL_XXX_NO_PRECONDITIONS
#undef CGAL_xxx_expensive_exactness_precondition
#undef CGAL_xxx_expensive_exactness_precondition_msg
#undef CGAL_xxx_expensive_exactness_precondition_code
#if defined(CGAL_XXX_NO_PRECONDITIONS) || defined(CGAL_NO_PRECONDITIONS) \
|| (!defined(CGAL_XXX_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
|| (!defined(CGAL_XXX_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
@@ -185,6 +222,10 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
// postconditions
// --------------
#undef CGAL_xxx_postcondition
#undef CGAL_xxx_postcondition_msg
#undef CGAL_xxx_postcondition_code
#if defined(CGAL_XXX_NO_POSTCONDITIONS) || defined(CGAL_NO_POSTCONDITIONS) \
|| defined(NDEBUG)
# define CGAL_xxx_postcondition(EX) (static_cast<void>(0))
@@ -199,6 +240,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_postconditions 1
#endif // CGAL_XXX_NO_POSTCONDITIONS
#undef CGAL_xxx_exactness_postcondition
#undef CGAL_xxx_exactness_postcondition_msg
#undef CGAL_xxx_exactness_postcondition_code
#if defined(CGAL_XXX_NO_POSTCONDITIONS) || defined(CGAL_NO_POSTCONDITIONS) \
|| (!defined(CGAL_XXX_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
|| defined(NDEBUG)
@@ -214,6 +260,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_exactness_postconditions 1
#endif // CGAL_XXX_NO_POSTCONDITIONS
#undef CGAL_xxx_expensive_postcondition
#undef CGAL_xxx_expensive_postcondition_msg
#undef CGAL_xxx_expensive_postcondition_code
#if defined(CGAL_XXX_NO_POSTCONDITIONS) || defined(CGAL_NO_POSTCONDITIONS) \
|| (!defined(CGAL_XXX_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
|| defined(NDEBUG)
@@ -229,6 +280,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_expensive_postconditions 1
#endif // CGAL_XXX_NO_POSTCONDITIONS
#undef CGAL_xxx_expensive_exactness_postcondition
#undef CGAL_xxx_expensive_exactness_postcondition_msg
#undef CGAL_xxx_expensive_exactness_postcondition_code
#if defined(CGAL_XXX_NO_POSTCONDITIONS) || defined(CGAL_NO_POSTCONDITIONS) \
|| (!defined(CGAL_XXX_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
|| (!defined(CGAL_XXX_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
@@ -249,6 +305,10 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
// warnings
// --------
#undef CGAL_xxx_warning
#undef CGAL_xxx_warning_msg
#undef CGAL_xxx_warning_code
#if defined(CGAL_XXX_NO_WARNINGS) || defined(CGAL_NO_WARNINGS) \
|| defined(NDEBUG)
# define CGAL_xxx_warning(EX) (static_cast<void>(0))
@@ -263,6 +323,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_warnings 1
#endif // CGAL_XXX_NO_WARNINGS
#undef CGAL_xxx_exactness_warning
#undef CGAL_xxx_exactness_warning_msg
#undef CGAL_xxx_exactness_warning_code
#if defined(CGAL_XXX_NO_WARNINGS) || defined(CGAL_NO_WARNINGS) \
|| (!defined(CGAL_XXX_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
|| defined(NDEBUG)
@@ -278,6 +343,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_exactness_warnings 1
#endif // CGAL_XXX_NO_WARNINGS
#undef CGAL_xxx_expensive_warning
#undef CGAL_xxx_expensive_warning_msg
#undef CGAL_xxx_expensive_warning_code
#if defined(CGAL_XXX_NO_WARNINGS) || defined(CGAL_NO_WARNINGS) \
|| (!defined(CGAL_XXX_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
|| defined(NDEBUG)
@@ -293,6 +363,11 @@ sed -e "s/XXX_/${nameUC}/g" -e "s/xxx_/${nameLC}/g" <<"EOF" \
# define CGAL_xxx_expensive_warnings 1
#endif // CGAL_XXX_NO_WARNINGS
#undef CGAL_xxx_expensive_exactness_warning
#undef CGAL_xxx_expensive_exactness_warning_msg
#undef CGAL_xxx_expensive_exactness_warning_code
#if defined(CGAL_XXX_NO_WARNINGS) || defined(CGAL_NO_WARNINGS) \
|| (!defined(CGAL_XXX_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
|| (!defined(CGAL_XXX_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \