Commit 2472f1f8 authored by malenov's avatar malenov
Browse files

resolve warnings about const qualifiers

parent 5f0e23f6
Loading
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -299,7 +299,7 @@ static char *my_strdup( const char *s )
#endif /* ifdef WMOPS */


int getCounterId( char *objectNameArg )
int getCounterId( const char *objectNameArg )
{
#if WMOPS
    if ( maxCounter >= MAXCOUNTERS - 1 )
@@ -427,11 +427,12 @@ Word32 TotalWeightedOperation()
{
#if WMOPS
    Word16 i;
    Word32 tot, *ptr, *ptr2;
    Word32 tot, *ptr;
    const Word32 *ptr2;

    tot = 0;
    ptr = (Word32 *) &multiCounter[currCounter];
    ptr2 = (Word32 *) &op_weight;
    ptr2 = (const Word32 *) &op_weight;
    for ( i = 0; i < (Word16) ( sizeof( multiCounter[currCounter] ) / sizeof( Word32 ) ); i++ )
    {
        tot += ( ( *ptr++ ) * ( *ptr2++ ) );
@@ -637,7 +638,8 @@ void generic_WMOPS_output( Word16 dtx_mode, char *test_file_name )
#if WMOPS
    int saved_value;
    Word16 i;
    Word32 tot, tot_wm, tot_wc, *ptr, *ptr2;
    Word32 tot, tot_wm, tot_wc, *ptr;
    const Word32 *ptr2;
    Word40 grand_total;
    FILE *WMOPS_file;

@@ -746,7 +748,7 @@ void generic_WMOPS_output( Word16 dtx_mode, char *test_file_name )

            tot = 0;
            ptr = (Word32 *) &multiCounter[0] + i;
            ptr2 = (Word32 *) &op_weight + i;
            ptr2 = (const Word32 *) &op_weight + i;
            for ( currCounter = 0; currCounter <= maxCounter; currCounter++ )
            {
                tot += ( ( *ptr ) * ( *ptr2 ) );
+2 −2
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@
#define MAXCOUNTERS              ( 512 )
#define MAX_CALLERS_SAVED_FRAMES 5 /* # of Frame for which WMOPS Complexity Details will be saved, 0 = Disabled */

int getCounterId( char *objectName );
int getCounterId( const char *objectName );
/*
 * Create a counter group, the "objectname" will be used when printing
 * statistics for this counter group.