- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cc
r7e003011 r0b150ec 149 149 }; 150 150 151 void ConversionCost::visit( __attribute((unused)) VoidType *voidType) {151 void ConversionCost::visit(VoidType *voidType) { 152 152 cost = Cost::infinity; 153 153 } … … 186 186 } 187 187 188 void ConversionCost::visit(__attribute((unused)) ArrayType *arrayType) {} 189 void ConversionCost::visit(__attribute((unused)) FunctionType *functionType) {} 188 void ConversionCost::visit(ArrayType *arrayType) { 189 } 190 191 void ConversionCost::visit(FunctionType *functionType) { 192 } 190 193 191 194 void ConversionCost::visit(StructInstType *inst) { … … 205 208 } 206 209 207 void ConversionCost::visit( __attribute((unused)) EnumInstType *inst) {210 void ConversionCost::visit(EnumInstType *inst) { 208 211 static Type::Qualifiers q; 209 212 static BasicType integer( q, BasicType::SignedInt ); … … 214 217 } 215 218 216 void ConversionCost::visit( __attribute((unused))TraitInstType *inst) {219 void ConversionCost::visit(TraitInstType *inst) { 217 220 } 218 221 … … 236 239 } 237 240 238 void ConversionCost::visit( __attribute((unused))TupleType *tupleType) {241 void ConversionCost::visit(TupleType *tupleType) { 239 242 Cost c; 240 243 if ( TupleType *destAsTuple = dynamic_cast< TupleType* >( dest ) ) { … … 256 259 } 257 260 258 void ConversionCost::visit( __attribute((unused))VarArgsType *varArgsType) {261 void ConversionCost::visit(VarArgsType *varArgsType) { 259 262 if ( dynamic_cast< VarArgsType* >( dest ) ) { 260 263 cost = Cost::zero; … … 262 265 } 263 266 264 void ConversionCost::visit( __attribute((unused))ZeroType *zeroType) {267 void ConversionCost::visit(ZeroType *zeroType) { 265 268 if ( dynamic_cast< ZeroType* >( dest ) ) { 266 269 cost = Cost::zero; … … 278 281 } 279 282 280 void ConversionCost::visit( __attribute((unused))OneType *oneType) {283 void ConversionCost::visit(OneType *oneType) { 281 284 if ( dynamic_cast< OneType* >( dest ) ) { 282 285 cost = Cost::zero;
Note:
See TracChangeset
for help on using the changeset viewer.