Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/PtrsCastable.cc

    raf397ef8 r1d29d46  
    9292        }
    9393
    94         void PtrsCastable::visit( __attribute__((unused)) VoidType *voidType) {
     94        void PtrsCastable::visit(VoidType *voidType) {
    9595                result = objectCast( dest, env, indexer );
    9696        }
    9797
    98         void PtrsCastable::visit( __attribute__((unused)) BasicType *basicType) {
     98        void PtrsCastable::visit(BasicType *basicType) {
    9999                result = objectCast( dest, env, indexer );
    100100        }
    101101
    102         void PtrsCastable::visit( __attribute__((unused)) PointerType *pointerType) {
     102        void PtrsCastable::visit(PointerType *pointerType) {
    103103                result = objectCast( dest, env, indexer );
    104104        }
    105105
    106         void PtrsCastable::visit( __attribute__((unused)) ArrayType *arrayType) {
     106        void PtrsCastable::visit(ArrayType *arrayType) {
    107107                result = objectCast( dest, env, indexer );
    108108        }
    109109
    110         void PtrsCastable::visit( __attribute__((unused)) FunctionType *functionType) {
     110        void PtrsCastable::visit(FunctionType *functionType) {
    111111                // result = -1;
    112112                result = functionCast( dest, env, indexer );
    113113        }
    114114
    115         void PtrsCastable::visit( __attribute__((unused)) StructInstType *inst) {
     115        void PtrsCastable::visit(StructInstType *inst) {
    116116                result = objectCast( dest, env, indexer );
    117117        }
    118118
    119         void PtrsCastable::visit( __attribute__((unused)) UnionInstType *inst) {
     119        void PtrsCastable::visit(UnionInstType *inst) {
    120120                result = objectCast( dest, env, indexer );
    121121        }
    122122
    123         void PtrsCastable::visit( __attribute__((unused)) EnumInstType *inst) {
     123        void PtrsCastable::visit(EnumInstType *inst) {
    124124                if ( dynamic_cast< EnumInstType* >( dest ) ) {
    125125                        result = 1;
     
    135135        }
    136136
    137         void PtrsCastable::visit( __attribute__((unused)) TraitInstType *inst ) {}
     137        void PtrsCastable::visit(TraitInstType *inst) {
     138                // I definitely don't think we should be doing anything here
     139        }
    138140
    139141        void PtrsCastable::visit(TypeInstType *inst) {
     
    142144        }
    143145
    144         void PtrsCastable::visit( __attribute__((unused)) TupleType *tupleType) {
     146        void PtrsCastable::visit(TupleType *tupleType) {
    145147                result = objectCast( dest, env, indexer );
    146148        }
    147149
    148         void PtrsCastable::visit( __attribute__((unused)) VarArgsType *varArgsType) {
     150        void PtrsCastable::visit(VarArgsType *varArgsType) {
    149151                result = objectCast( dest, env, indexer );
    150152        }
    151153
    152         void PtrsCastable::visit( __attribute__((unused)) ZeroType *zeroType) {
     154        void PtrsCastable::visit(ZeroType *zeroType) {
    153155                result = objectCast( dest, env, indexer );
    154156        }
    155157
    156         void PtrsCastable::visit( __attribute__((unused)) OneType *oneType) {
     158        void PtrsCastable::visit(OneType *oneType) {
    157159                result = objectCast( dest, env, indexer );
    158160        }
Note: See TracChangeset for help on using the changeset viewer.