Changeset ecd4923


Ignore:
Timestamp:
Dec 18, 2017, 2:55:52 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
103b264
Parents:
46dfe66
Message:

Remove unnecessary attribute unused

Location:
src/ResolvExpr
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CommonType.cc

    r46dfe66 recd4923  
    188188        }
    189189
    190         void CommonType::visit( __attribute((unused)) VoidType *voidType ) {}
     190        void CommonType::visit( VoidType * ) {}
    191191
    192192        void CommonType::visit( BasicType *basicType ) {
     
    254254        }
    255255
    256         void CommonType::visit( __attribute((unused)) ArrayType *arrayType ) {}
     256        void CommonType::visit( ArrayType * ) {}
    257257
    258258        void CommonType::visit( ReferenceType *refType ) {
     
    291291        }
    292292
    293         void CommonType::visit( __attribute((unused)) FunctionType *functionType ) {}
    294         void CommonType::visit( __attribute((unused)) StructInstType *aggregateUseType ) {}
    295         void CommonType::visit( __attribute((unused)) UnionInstType *aggregateUseType ) {}
     293        void CommonType::visit( FunctionType * ) {}
     294        void CommonType::visit( StructInstType * ) {}
     295        void CommonType::visit( UnionInstType * ) {}
    296296
    297297        void CommonType::visit( EnumInstType *enumInstType ) {
     
    304304        }
    305305
    306         void CommonType::visit( __attribute((unused)) TraitInstType *aggregateUseType ) {
     306        void CommonType::visit( TraitInstType * ) {
    307307        }
    308308
     
    329329        }
    330330
    331         void CommonType::visit( __attribute((unused)) TupleType *tupleType ) {}
    332         void CommonType::visit( __attribute((unused)) VarArgsType *varArgsType ) {}
     331        void CommonType::visit( TupleType * ) {}
     332        void CommonType::visit( VarArgsType * ) {}
    333333
    334334        void CommonType::visit( ZeroType *zeroType ) {
  • src/ResolvExpr/ConversionCost.cc

    r46dfe66 recd4923  
    257257        };
    258258
    259         void ConversionCost::visit( __attribute((unused)) VoidType *voidType ) {
     259        void ConversionCost::visit( VoidType * ) {
    260260                cost = Cost::infinity;
    261261        }
  • src/ResolvExpr/PtrsAssignable.cc

    r46dfe66 recd4923  
    6767        PtrsAssignable::PtrsAssignable( Type *dest, const TypeEnvironment &env ) : dest( dest ), result( 0 ), env( env ) {}
    6868
    69         void PtrsAssignable::visit( __attribute((unused)) VoidType *voidType ) {
     69        void PtrsAssignable::visit( VoidType * ) {
    7070                // T * = void * is disallowed - this is a change from C, where any
    7171                // void * can be assigned or passed to a non-void pointer without a cast.
Note: See TracChangeset for help on using the changeset viewer.