don't define constants unused in release build (SGI CC warning)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Sep 2005 22:17:40 +0000 (22:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Sep 2005 22:17:40 +0000 (22:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp

index d3e20b66d5d8b48058973cb4d1b73aac07b34208..5dcdc4e208b4c895cb62297868b9c98953c5b872 100644 (file)
@@ -235,11 +235,14 @@ static const long MILLISECONDS_PER_DAY = 86400000l;
 // (i.e. JDN(Jan 1, 1970) = 2440587.5)
 static const long EPOCH_JDN = 2440587l;
 
+// used only in asserts
+#ifdef __WXDEBUG__
 // the date of JDN -0.5 (as we don't work with fractional parts, this is the
 // reference date for us) is Nov 24, 4714BC
 static const int JDN_0_YEAR = -4713;
 static const int JDN_0_MONTH = wxDateTime::Nov;
 static const int JDN_0_DAY = 24;
+#endif // __WXDEBUG__
 
 // the constants used for JDN calculations
 static const long JDN_OFFSET         = 32046l;