[Kst] kdeextragear-2/kst/plugins/crosscorrelation
Andrew Walker
arwalker at sumusltd.com
Tue Dec 16 01:09:40 CET 2003
CVS commit by arwalker:
Defined KST_UNUSED
M +4 -6 crosscorrelation.c 1.5
--- kdeextragear-2/kst/plugins/crosscorrelation/crosscorrelation.c #1.4:1.5
@@ -12,4 +12,5 @@
#define ONE_PI 3.1415926535897930475926
#define TWO_PI 6.2831853071795858696103
+#define KST_UNUSED(x) if(x){};
void four1( double data[], unsigned long nn, int isign );
@@ -212,4 +213,7 @@ int crosscorrelation( const double *cons
double outScalars[] )
{
+ KST_UNUSED( inScalars )
+ KST_UNUSED( outScalars )
+
double* pData[2];
double* pResult[2];
@@ -221,10 +225,4 @@ int crosscorrelation( const double *cons
int i;
- /*
- // prevent warnings about unused parameters...
- */
- if( inScalars ) { }
- if( outScalars ) { }
-
if( inArrayLens[0] == inArrayLens[1] )
{
More information about the Kst
mailing list