(verify_expr): Use ((verify_type__ (R) *) 0), not

sizeof (verify_type__ (R)), to pacify C++ compilers.
This commit is contained in:
Paul Eggert committed 2005-07-11 23:28:09 +00:00
1 parent 6a406d5d8b
commit 7c97d643b9
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -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.
+1 -1
View File
@@ -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