Ignore:
Timestamp:
Apr 6, 2013 2:13:35 PM (7 years ago)
Author:
stefan
Message:

fix compiler (gcc 4.6.2) warnings in optimized mode, mainly about unused variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/Cbc_ampl.cpp

    r1869 r1886  
    441441                sos_kludge(nsos, sosbeg, sosref, sosind);
    442442                for (int i = 0; i < nsos; i++) {
    443                     int ichar = sostype[i];
     443                    char ichar = sostype[i];
    444444                    assert (ichar == '1' || ichar == '2');
    445                     info->sosType[i] = ichar - '0';
     445                    info->sosType[i] = static_cast<char>(ichar - '0');
    446446                }
    447447                memcpy(info->sosPriority, sospri, nsos*sizeof(int));
     
    619619            fprintf(stderr, "You can copy .nl file %s for debug purposes or attach debugger\n", saveArgv[1]);
    620620            fprintf(stderr, "Type q to quit, anything else to continue\n");
    621             char getChar = getc(stdin);
     621            int getChar = getc(stdin);
    622622            if (getChar == 'q' || getChar == 'Q')
    623623                exit(1);
     
    988988        // quadratic
    989989        asl = ASL_alloc(ASL_read_fg);
    990         nl = jac0dim(stub, (long) strlen(stub));
     990        nl = jac0dim(stub, (ftnlen) strlen(stub));
    991991        free(stub);
    992992        suf_declare(suftab, sizeof(suftab) / sizeof(SufDecl));
     
    10941094        //ASL_pfgh* asl = (ASL_pfgh*)ASL_alloc(ASL_read_pfgh);
    10951095        asl = ASL_alloc(ASL_read_pfgh);
    1096         nl = jac0dim(stub, (long) strlen(stub));
     1096        nl = jac0dim(stub, (ftnlen) strlen(stub));
    10971097        free(stub);
    10981098        suf_declare(suftab, sizeof(suftab) / sizeof(SufDecl));
Note: See TracChangeset for help on using the changeset viewer.