Ignore:
Timestamp:
Dec 12, 2024, 4:35:32 PM (6 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
  • tests/.expect/functions.arm64.txt

    rf979f0ba r35cc6d4  
    123123struct _tuple2_ {
    124124};
    125 static inline void _layoutof__tuple2_(unsigned long int *_sizeof__tuple2_, unsigned long int *_alignof__tuple2_, unsigned long int *_offsetof__tuple2_, const unsigned long int _sizeof_Y15tuple_param_2_0, const unsigned long int _alignof_Y15tuple_param_2_0, const unsigned long int _sizeof_Y15tuple_param_2_1, const unsigned long int _alignof_Y15tuple_param_2_1){
     125static inline void _layoutof__tuple2_(unsigned long int *_sizeof__tuple2_, unsigned long int *_alignof__tuple2_, unsigned long int *_offsetof__tuple2_, const unsigned long int _sizeof_Y15tuple_param_2_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_0, const unsigned long int _sizeof_Y15tuple_param_2_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_2_1){
    126126    ((void)((*_sizeof__tuple2_)=0));
    127127    ((void)((*_alignof__tuple2_)=1));
     
    160160struct _tuple3_ {
    161161};
    162 static inline void _layoutof__tuple3_(unsigned long int *_sizeof__tuple3_, unsigned long int *_alignof__tuple3_, unsigned long int *_offsetof__tuple3_, const unsigned long int _sizeof_Y15tuple_param_3_0, const unsigned long int _alignof_Y15tuple_param_3_0, const unsigned long int _sizeof_Y15tuple_param_3_1, const unsigned long int _alignof_Y15tuple_param_3_1, const unsigned long int _sizeof_Y15tuple_param_3_2, const unsigned long int _alignof_Y15tuple_param_3_2){
     162static inline void _layoutof__tuple3_(unsigned long int *_sizeof__tuple3_, unsigned long int *_alignof__tuple3_, unsigned long int *_offsetof__tuple3_, const unsigned long int _sizeof_Y15tuple_param_3_0, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_0, const unsigned long int _sizeof_Y15tuple_param_3_1, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_1, const unsigned long int _sizeof_Y15tuple_param_3_2, __attribute__ ((unused)) const unsigned long int _alignof_Y15tuple_param_3_2){
    163163    ((void)((*_sizeof__tuple3_)=0));
    164164    ((void)((*_alignof__tuple3_)=1));
     
    240240    signed int _X1ii_1;
    241241};
    242 static inline void _X12_constructorFv_S1S_autogen___1(struct S *_X4_dstS1S_1){
     242static inline void _X12_constructorFv_S1S_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1){
    243243    {
    244244        ((void)((*_X4_dstS1S_1)._X1ii_1) /* ?{} */);
     
    246246
    247247}
    248 static inline void _X12_constructorFv_S1SS1S_autogen___1(struct S *_X4_dstS1S_1, struct S _X4_srcS1S_1){
     248static inline void _X12_constructorFv_S1SS1S_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1, __attribute__ ((unused)) struct S _X4_srcS1S_1){
    249249    {
    250250        ((void)((*_X4_dstS1S_1)._X1ii_1=_X4_srcS1S_1._X1ii_1) /* ?{} */);
     
    252252
    253253}
    254 static inline void _X11_destructorFv_S1S_autogen___1(struct S *_X4_dstS1S_1){
     254static inline void _X11_destructorFv_S1S_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1){
    255255    {
    256256        ((void)((*_X4_dstS1S_1)._X1ii_1) /* ^?{} */);
     
    258258
    259259}
    260 static inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___1(struct S *_X4_dstS1S_1, struct S _X4_srcS1S_1){
    261     struct S _X4_retS1S_1;
     260static inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1, __attribute__ ((unused)) struct S _X4_srcS1S_1){
     261    __attribute__ ((unused)) struct S _X4_retS1S_1;
    262262    {
    263263        ((void)((*_X4_dstS1S_1)._X1ii_1=_X4_srcS1S_1._X1ii_1));
     
    270270    return _X4_retS1S_1;
    271271}
    272 static inline void _X12_constructorFv_S1Si_autogen___1(struct S *_X4_dstS1S_1, signed int _X1ii_1){
     272static inline void _X12_constructorFv_S1Si_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1, signed int _X1ii_1){
    273273    {
    274274        ((void)((*_X4_dstS1S_1)._X1ii_1=_X1ii_1) /* ?{} */);
Note: See TracChangeset for help on using the changeset viewer.