[Scipy-svn] r2957 - trunk/Lib/sandbox/timeseries/src

scipy-svn at scipy.org scipy-svn at scipy.org
Thu May 3 13:37:26 EDT 2007


Author: mattknox_ca
Date: 2007-05-03 12:37:21 -0500 (Thu, 03 May 2007)
New Revision: 2957

Modified:
   trunk/Lib/sandbox/timeseries/src/cseries.c
Log:
got rid of some warnings

Modified: trunk/Lib/sandbox/timeseries/src/cseries.c
===================================================================
--- trunk/Lib/sandbox/timeseries/src/cseries.c	2007-05-03 15:01:45 UTC (rev 2956)
+++ trunk/Lib/sandbox/timeseries/src/cseries.c	2007-05-03 17:37:21 UTC (rev 2957)
@@ -1470,7 +1470,7 @@
     return 0;
 }
 
-static int build_freq_dict() {
+static int build_freq_dict(void) {
 
     char ANN_prefixes[8][15] = { "A", "Y", "ANN", "ANNUAL", "ANNUALLY",
                                  "YR", "YEAR", "YEARLY" };
@@ -1671,7 +1671,7 @@
 
 /* for use in C code */
 static DateObject *
-DateObject_New() {
+DateObject_New(void) {
     PyObject *dummy;
     return (DateObject*)DateObject_new(&DateType, dummy, dummy);
 }
@@ -1989,7 +1989,7 @@
     struct date_info tempDate;
     long absdate;
     double abstime;
-    int i, result_len, special_found=0;
+    int i, result_len;
     PyObject *py_result;
 
     long (*toDaily)(long, char, struct asfreq_info*) = NULL;
@@ -2721,7 +2721,8 @@
     long newStart, newStartTemp;
     long newEnd, newEndTemp;
     long newLen, newHeight;
-    long i, currIndex, prevIndex;
+    int i;
+    long currIndex, prevIndex;
     long nd;
     npy_intp *dim, *newIdx;
     long currPerLen;
@@ -3719,9 +3720,9 @@
     Py_DECREF(ops_dict);
 
     Py_INCREF(&DateType);
-    PyModule_AddObject(m, "Date", (PyObject *)&DateType);
+    PyModule_AddObject(m, "Date", (PyObject *)(&DateType));
 
-    if(build_freq_dict(m) == INT_ERR_CODE) {
+    if(build_freq_dict() == INT_ERR_CODE) {
         PyErr_SetString(                    \
             PyExc_ImportError,              \
             "initialization of module timeseries.cseries failed");
@@ -3735,4 +3736,4 @@
     PyModule_AddObject(m, "DateCalc_Error", DateCalc_Error);
     PyModule_AddObject(m, "DateCalc_RangeError", DateCalc_RangeError);
 
-}
\ No newline at end of file
+}




More information about the Scipy-svn mailing list