Changeset 13481af0 for src/InitTweak/FixInit.cpp
- Timestamp:
- Jul 2, 2026, 5:07:05 PM (3 days ago)
- Branches:
- master
- Children:
- 7886a92f
- Parents:
- 16d862d
- File:
-
- 1 edited
-
src/InitTweak/FixInit.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cpp
r16d862d r13481af0 816 816 if ( const ast::Stmt * ctor = ctorInit->ctor ) { 817 817 if ( objDecl->storage.is_static ) { 818 addDataSectionAttribute(objDecl); 818 // Remove const qualifier from definition and there can be no forward declarations. 819 if ( objDecl->type->is_const() ) { 820 ast::Type * fred = const_cast<ast::Type *>(objDecl->get_type()); 821 fred->set_const( false ); 822 } 819 823 // originally wanted to take advantage of gcc nested functions, but 820 824 // we get memory errors with this approach. To remedy this, the static
Note:
See TracChangeset
for help on using the changeset viewer.