Changeset 0bf03ba2 for src/GenPoly


Ignore:
Timestamp:
Dec 20, 2024, 9:38:52 PM (4 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
0cd168f
Parents:
3df3a8f
Message:

Remove warnings due to unused parameters in generated code for zero-length ttype instantiations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/GenPoly/Specialize.cpp

    r3df3a8f r0bf03ba2  
    300300                } ),
    301301                map_range<DWTVector>( newType->params, [&location, &paramNamer]( const ast::Type * type ) {
    302                         return new ast::ObjectDecl( location, paramNamer.newName(), ast::deepCopy( type ) );
     302                        auto param = new ast::ObjectDecl( location, paramNamer.newName(), ast::deepCopy( type ) );
     303                        param->attributes.push_back( new ast::Attribute( "unused" ) );
     304                        return param;
    303305                } ),
    304306                map_range<DWTVector>( newType->returns, [&location, &paramNamer]( const ast::Type * type ) {
Note: See TracChangeset for help on using the changeset viewer.