[Kst] kdeextragear-2/kst/plugins/phase

Andrew Walker arwalker at sumusltd.com
Tue Dec 16 01:12:34 CET 2003


CVS commit by arwalker: 

Defined KST_UNUSED


  M +4 -6      phase.c   1.4


--- kdeextragear-2/kst/plugins/phase/phase.c  #1.3:1.4
@@ -9,4 +9,5 @@
 #include <math.h>
 #include <string.h>
+#define KST_UNUSED(x) if(x){};
 
 void swap( double* pData[], int iOne, int iTwo );
@@ -70,4 +71,6 @@ int phase( const double *const inArrays[
                 double outScalars[] )
 {
+    KST_UNUSED( outScalars )
+    
     double* pResult[2];
     double      dPhasePeriod = inScalars[0];
@@ -77,9 +80,4 @@ int phase( const double *const inArrays[
     int i;
     
-    /*
-    prevent warnings about unused parameters...
-    */
-    if( outScalars ) { }
-    
     if( dPhasePeriod > 0.0 )
     {





More information about the Kst mailing list