Changeset 418

Show
Ignore:
Timestamp:
08/05/09 11:53:31 (15 years ago)
Author:
trnewman
Message:

Cleaning up warnings

Location:
vtcross/trunk/src/cognitive_engines
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/cognitive_engines/CBR_CE/CognitiveEngine.cpp

    r411 r418  
    124124        columnObsIndex++; 
    125125    }   
    126     obsList[columnObsIndex] = "utility"; 
     126    obsList[columnObsIndex] = (char *) "utility"; 
    127127 
    128128    size_t columnIndex = 0; 
     
    273273            LOG("Cognitive Engine:: Processing parameters....\n"); 
    274274 
    275             Parameter *solutionSet; 
     275            //Parameter *solutionSet; 
    276276             
    277277            //solutionSet = GetSolution(o,cp); 
     
    281281            LOG("Cognitive Engine:: Sending Optimal Parameters to Application.\n"); 
    282282            char numParametersChar[10]; 
    283             char solutionValue[50]; 
     283            //char solutionValue[50]; 
    284284            sprintf(numParametersChar, "%i", radioInfo->numParameters); 
    285285            SendMessage(commandSocketFD, numParametersChar); 
     
    736736        allNameIndex++; 
    737737    } 
    738     allNames[allNameIndex] = "utility"; 
     738    allNames[allNameIndex] = (char *)"utility"; 
    739739 
    740740    // Add row to CBR.  
     
    789789        columnIndex++; 
    790790    }    
    791     cols[columnIndex] = "utility"; 
     791    cols[columnIndex] = (char *) "utility"; 
    792792 
    793793    myCBR = cbr_create(filename, tablename, cols, numberColumns); 
  • vtcross/trunk/src/cognitive_engines/OSSIE_DEMO_CE/OSSIE_CE.cpp

    r417 r418  
    119119        columnObsIndex++; 
    120120    }   
    121     obsList[columnObsIndex] = "utility"; 
     121    obsList[columnObsIndex] = (char*) "utility"; 
    122122 
    123123    size_t columnIndex = 0; 
     
    270270            LOG("Cognitive Engine:: Processing parameters....\n"); 
    271271 
    272             Parameter *solutionSet; 
     272            //Parameter *solutionSet; 
    273273             
    274274            //solutionSet = GetSolution(o,cp); 
     
    278278            LOG("Cognitive Engine:: Sending Optimal Parameters to Application.\n"); 
    279279            char numParametersChar[10]; 
    280             char solutionValue[50]; 
     280            //char solutionValue[50]; 
    281281            sprintf(numParametersChar, "%i", radioInfo->numParameters); 
    282282            SendMessage(commandSocketFD, numParametersChar); 
     
    730730        allNameIndex++; 
    731731    } 
    732     allNames[allNameIndex] = "utility"; 
     732    allNames[allNameIndex] = (char *) "utility"; 
    733733 
    734734    // Add row to CBR.  
     
    783783        columnIndex++; 
    784784    }    
    785     cols[columnIndex] = "utility"; 
     785    cols[columnIndex] = (char *)"utility"; 
    786786 
    787787    myCBR = cbr_create(filename, tablename, cols, numberColumns);