Ignore:
Timestamp:
Dec 12, 2024, 4:35:32 PM (7 days ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
8ee211d
Parents:
f979f0ba
Message:

Mitigate several unused-declaration warnings in generated code.

See tests/nowarn/unused for the specific cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/CompoundLiteral.cpp

    rf979f0ba r35cc6d4  
    5252                storageClasses
    5353                );
     54        // FIXME: A resolution of #280 could make the unused attribute unnecessary here
     55        //     (let test nowarn/unused decide)
     56        temp->attributes.push_back( new ast::Attribute( "unused" ) );
    5457        declsToAddBefore.push_back( temp );
    5558        return new ast::VariableExpr( expr->location, temp );
Note: See TracChangeset for help on using the changeset viewer.