X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcheck_type%2Fcheck_type.h;h=0cf52543e38e6e2d6ef208873fe975839041ce44;hp=884056719cc718eb075acd1a8848c8aef8640265;hb=3f4e83d8ac847d6bf0c20e88cdbca535e842a97b;hpb=a1d048552e7c9cbd07092cefb87204563a807608 diff --git a/ccan/check_type/check_type.h b/ccan/check_type/check_type.h index 88405671..0cf52543 100644 --- a/ccan/check_type/check_type.h +++ b/ccan/check_type/check_type.h @@ -54,10 +54,10 @@ #include /* Without typeof, we can only test the sizes. */ #define check_type(expr, type) \ - EXPR_BUILD_ASSERT(sizeof(expr) == sizeof(type)) + BUILD_ASSERT_OR_ZERO(sizeof(expr) == sizeof(type)) #define check_types_match(expr1, expr2) \ - EXPR_BUILD_ASSERT(sizeof(expr1) == sizeof(expr2)) + BUILD_ASSERT_OR_ZERO(sizeof(expr1) == sizeof(expr2)) #endif /* HAVE_TYPEOF */ #endif /* CCAN_CHECK_TYPE_H */