From 7c97d643b9e44ffc992bc6fddb6c5a7f0824b7c7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 11 Jul 2005 23:28:09 +0000 Subject: (verify_expr): Use ((verify_type__ (R) *) 0), not sizeof (verify_type__ (R)), to pacify C++ compilers. --- lib/ChangeLog | 4 ++++ lib/verify.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ChangeLog b/lib/ChangeLog index 66225fe59..dc341fd61 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,9 @@ 2005-07-11 Paul Eggert + * verify.h (verify_expr): Use ((verify_type__ (R) *) 0), not + sizeof (verify_type__ (R)), to pacify C++ compilers. Problem + reported by Bruno Haible. + * version-etc-fsf.c (version_etc_copyright): Parameterize the copyright symbol and the year. * version-etc.c (COPYRIGHT_YEAR): New constant. diff --git a/lib/verify.h b/lib/verify.h index 322851bb5..4461f4e47 100644 --- a/lib/verify.h +++ b/lib/verify.h @@ -52,6 +52,6 @@ This macro can be used in some contexts where verify cannot, and vice versa. Return void. */ -# define verify_expr(R) ((void) sizeof (verify_type__ (R))) +# define verify_expr(R) ((void) ((verify_type__ (R) *) 0)) #endif -- cgit v1.2.3-54-g00ecf