Ticket #66: rasdaman-gcc46-fpermissive.diff

File rasdaman-gcc46-fpermissive.diff, 625 bytes (added by nospam@…, 13 years ago)

gcc-4.6 fpermissive Patch

  • ./qlparser/qtinsert.cc

    /* qtinsert.cc:145:114: error: taking address of temporary [-fpermissive] */
    old new  
    143143        }
    144144
    145         if (!persColl->getCollectionType()->getMDDType()->compatibleWithDomain(&(sourceObj->getDefinitionDomain()))) {
     145        r_Minterval str_compatible_widthdomain = sourceObj->getDefinitionDomain();
     146        if (!persColl->getCollectionType()->getMDDType()->compatibleWithDomain(&str_compatible_widthdomain)) {
    146147            // free resources
    147148            persColl->releaseAll();