[Kst] kdeextragear-2/kst/plugins/statistics
Andrew Walker
arwalker at sumusltd.com
Tue Dec 16 01:11:06 CET 2003
CVS commit by arwalker:
Defined KST_UNUSED
M +6 -8 statistics.c 1.4
--- kdeextragear-2/kst/plugins/statistics/statistics.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 );
@@ -66,4 +67,8 @@ int statistics( const double *const inAr
double outScalars[] )
{
+ KST_UNUSED( inScalars )
+ KST_UNUSED( outArrays )
+ KST_UNUSED( outArrayLens )
+
double* pCopy;
double dMean = 0.0;
@@ -78,11 +83,4 @@ int statistics( const double *const inAr
int i;
- /*
- prevent warnings about unused parameters...
- */
- if( inScalars ) { }
- if( outArrays ) { }
- if( outArrayLens ) { }
-
if( inArrayLens[0] > 0 )
{
More information about the Kst
mailing list