diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-11 23:28:09 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-11 23:28:09 +0000 |
commit | 7c97d643b9e44ffc992bc6fddb6c5a7f0824b7c7 (patch) | |
tree | 51197e1f901f47e19627fa66cd15276cf1c48af3 /lib | |
parent | 6a406d5d8ba1d7fcd9436d42cd42f5fd69449105 (diff) | |
download | coreutils-7c97d643b9e44ffc992bc6fddb6c5a7f0824b7c7.tar.xz |
(verify_expr): Use ((verify_type__ (R) *) 0), not
sizeof (verify_type__ (R)), to pacify C++ compilers.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 4 | ||||
-rw-r--r-- | lib/verify.h | 2 |
2 files changed, 5 insertions, 1 deletions
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 <eggert@cs.ucla.edu> + * 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 |