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

Andrew Walker arwalker at sumusltd.com
Tue Dec 16 01:21:23 CET 2003


CVS commit by arwalker: 

Defined KST_UNUSED


  M +5 -6      chop.c   1.4


--- kdeextragear-2/kst/plugins/chop/chop.c  #1.3:1.4
@@ -10,4 +10,6 @@
 #include <string.h>
 
+#define KST_UNUSED(x) if(x){};
+
 int chop( const double *const inArrays[], const int inArrayLens[],
                 const double inScalars[],
@@ -20,4 +22,7 @@ int chop( const double *const inArrays[]
                 double outScalars[] )
 {
+    KST_UNUSED( inScalars )
+    KST_UNUSED( outScalars )
+    
     double* pResult[3];
     int iRetVal = -1;
@@ -26,10 +31,4 @@ int chop( const double *const inArrays[]
     int i;
     
-    /*
-    prevent warnings about unused parameters...
-    */
-    if( inScalars ) { }
-    if( outScalars ) { }
-    
     if( iLength > 1 )
     {   





More information about the Kst mailing list