Changeset 0bf03ba2
- Timestamp:
- Dec 20, 2024, 9:38:52 PM (11 months ago)
- Branches:
- master
- Children:
- 0cd168f
- Parents:
- 3df3a8f
- Files:
-
- 4 edited
-
src/GenPoly/Specialize.cpp (modified) (1 diff)
-
src/InitTweak/FixInit.cpp (modified) (1 diff)
-
tests/Makefile.am (modified) (3 diffs)
-
tests/nowarn/unused.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Specialize.cpp
r3df3a8f r0bf03ba2 300 300 } ), 301 301 map_range<DWTVector>( newType->params, [&location, ¶mNamer]( 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; 303 305 } ), 304 306 map_range<DWTVector>( newType->returns, [&location, ¶mNamer]( const ast::Type * type ) { -
src/InitTweak/FixInit.cpp
r3df3a8f r0bf03ba2 70 70 ast::Linkage::Cforall 71 71 ); 72 dstParam->attributes.push_back( new ast::Attribute( "unused" ) ); 72 73 return new ast::FunctionDecl( loc, 73 74 fname, -
tests/Makefile.am
r3df3a8f r0bf03ba2 52 52 WFLGAS_OPT_LAX = \ 53 53 alloc \ 54 alloc2 \55 54 array \ 56 55 array-collections/array-raii-c \ … … 98 97 concurrency/examples/boundedBufferEXT \ 99 98 concurrency/examples/boundedBufferINT \ 100 concurrency/futures/abandon \101 99 concurrency/futures/multi \ 102 100 concurrency/futures/select_future \ … … 179 177 function-operator \ 180 178 gmp \ 181 heap \182 179 identFuncDeclarator \ 183 180 identParamDeclarator \ -
tests/nowarn/unused.cfa
r3df3a8f r0bf03ba2 17 17 enum () foo_t { foo }; 18 18 19 // on empty tuple, __cleanup_dtor takes zero actions on its param and 20 // _thunk's purpose is to ignore its param 21 forall( Args... | { void foo( Args ); } ) 22 void wrap( Args ) {} 23 void foo() {} 24 void callWrap() { 25 wrap(); 26 } 27 19 28 20 29 int main() {
Note:
See TracChangeset
for help on using the changeset viewer.