changeset 7066:7773c0fdefa6

[project @ 2007-10-25 06:06:41 by jwe]
author jwe
date Thu, 25 Oct 2007 06:06:41 +0000
parents 97db94ae2cf0
children 88417316c1b0
files src/ChangeLog src/ov-base.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Oct 25 05:50:56 2007 +0000
+++ b/src/ChangeLog	Thu Oct 25 06:06:41 2007 +0000
@@ -1,5 +1,8 @@
 2007-10-25  John W. Eaton  <jwe@octave.org>
 
+	* ov-base.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): Use
+	OCTAVE_EMPTY_CPP_ARG to avoid annoying Sun compiler warning.
+
 	* Makefile.in (graphics.h): Use $(AWK) instead of awk.
 
 	* DLD-FUNCTIONS/time.cc (Ftime, Fmktime): Avoid unnecessary cast.
--- a/src/ov-base.h	Thu Oct 25 05:50:56 2007 +0000
+++ b/src/ov-base.h	Thu Oct 25 06:06:41 2007 +0000
@@ -60,8 +60,10 @@
 
 // T_ID is the type id of struct objects, set by register_type().
 // T_NAME is the type name of struct objects.
+#define OCTAVE_EMPTY_CPP_ARG
 #define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA \
-  DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2 ( )
+  DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2 (OCTAVE_EMPTY_CPP_ARG)
+#undef OCTAVE_EMPTY_CPP_ARG
 
 #define DECLARE_OV_BASE_TYPEID_FUNCTIONS_AND_DATA \
   DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2(virtual)