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/gccExtensions.x86.txt

    rf979f0ba r35cc6d4  
    3737        __extension__ signed int _X1ci_2;
    3838    };
    39     inline void _X12_constructorFv_S1S_autogen___2(struct S *_X4_dstS1S_2){
     39    inline void _X12_constructorFv_S1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2){
    4040        {
    4141            ((void)((*_X4_dstS1S_2)._X1ai_2) /* ?{} */);
     
    5151
    5252    }
    53     inline void _X12_constructorFv_S1SS1S_autogen___2(struct S *_X4_dstS1S_2, struct S _X4_srcS1S_2){
     53    inline void _X12_constructorFv_S1SS1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, __attribute__ ((unused)) struct S _X4_srcS1S_2){
    5454        {
    5555            ((void)((*_X4_dstS1S_2)._X1ai_2=_X4_srcS1S_2._X1ai_2) /* ?{} */);
     
    6565
    6666    }
    67     inline void _X11_destructorFv_S1S_autogen___2(struct S *_X4_dstS1S_2){
     67    inline void _X11_destructorFv_S1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2){
    6868        {
    6969            ((void)((*_X4_dstS1S_2)._X1ci_2) /* ^?{} */);
     
    7979
    8080    }
    81     inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___2(struct S *_X4_dstS1S_2, struct S _X4_srcS1S_2){
    82         struct S _X4_retS1S_2;
     81    inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, __attribute__ ((unused)) struct S _X4_srcS1S_2){
     82        __attribute__ ((unused)) struct S _X4_retS1S_2;
    8383        {
    8484            ((void)((*_X4_dstS1S_2)._X1ai_2=_X4_srcS1S_2._X1ai_2));
     
    9999        return _X4_retS1S_2;
    100100    }
    101     inline void _X12_constructorFv_S1Si_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2){
     101    inline void _X12_constructorFv_S1Si_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, signed int _X1ai_2){
    102102        {
    103103            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
     
    113113
    114114    }
    115     inline void _X12_constructorFv_S1Sii_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2){
     115    inline void _X12_constructorFv_S1Sii_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2){
    116116        {
    117117            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
     
    127127
    128128    }
    129     inline void _X12_constructorFv_S1Siii_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2){
     129    inline void _X12_constructorFv_S1Siii_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2){
    130130        {
    131131            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
     
    170170        signed int _X1ii_2;
    171171    };
    172     inline void _X12_constructorFv_S2s2_autogen___2(struct s2 *_X4_dstS2s2_2){
     172    inline void _X12_constructorFv_S2s2_autogen___2(__attribute__ ((unused)) struct s2 *_X4_dstS2s2_2){
    173173        {
    174174            ((void)((*_X4_dstS2s2_2)._X1ii_2) /* ?{} */);
     
    176176
    177177    }
    178     inline void _X12_constructorFv_S2s2S2s2_autogen___2(struct s2 *_X4_dstS2s2_2, struct s2 _X4_srcS2s2_2){
     178    inline void _X12_constructorFv_S2s2S2s2_autogen___2(__attribute__ ((unused)) struct s2 *_X4_dstS2s2_2, __attribute__ ((unused)) struct s2 _X4_srcS2s2_2){
    179179        {
    180180            ((void)((*_X4_dstS2s2_2)._X1ii_2=_X4_srcS2s2_2._X1ii_2) /* ?{} */);
     
    182182
    183183    }
    184     inline void _X11_destructorFv_S2s2_autogen___2(struct s2 *_X4_dstS2s2_2){
     184    inline void _X11_destructorFv_S2s2_autogen___2(__attribute__ ((unused)) struct s2 *_X4_dstS2s2_2){
    185185        {
    186186            ((void)((*_X4_dstS2s2_2)._X1ii_2) /* ^?{} */);
     
    188188
    189189    }
    190     inline struct s2 _X16_operator_assignFS2s2_S2s2S2s2_autogen___2(struct s2 *_X4_dstS2s2_2, struct s2 _X4_srcS2s2_2){
    191         struct s2 _X4_retS2s2_2;
     190    inline struct s2 _X16_operator_assignFS2s2_S2s2S2s2_autogen___2(__attribute__ ((unused)) struct s2 *_X4_dstS2s2_2, __attribute__ ((unused)) struct s2 _X4_srcS2s2_2){
     191        __attribute__ ((unused)) struct s2 _X4_retS2s2_2;
    192192        {
    193193            ((void)((*_X4_dstS2s2_2)._X1ii_2=_X4_srcS2s2_2._X1ii_2));
     
    200200        return _X4_retS2s2_2;
    201201    }
    202     inline void _X12_constructorFv_S2s2i_autogen___2(struct s2 *_X4_dstS2s2_2, signed int _X1ii_2){
     202    inline void _X12_constructorFv_S2s2i_autogen___2(__attribute__ ((unused)) struct s2 *_X4_dstS2s2_2, signed int _X1ii_2){
    203203        {
    204204            ((void)((*_X4_dstS2s2_2)._X1ii_2=_X1ii_2) /* ?{} */);
     
    209209        signed int _X1ii_2;
    210210    };
    211     inline void _X12_constructorFv_S2s3_autogen___2(struct s3 *_X4_dstS2s3_2){
     211    inline void _X12_constructorFv_S2s3_autogen___2(__attribute__ ((unused)) struct s3 *_X4_dstS2s3_2){
    212212        {
    213213            ((void)((*_X4_dstS2s3_2)._X1ii_2) /* ?{} */);
     
    215215
    216216    }
    217     inline void _X12_constructorFv_S2s3S2s3_autogen___2(struct s3 *_X4_dstS2s3_2, struct s3 _X4_srcS2s3_2){
     217    inline void _X12_constructorFv_S2s3S2s3_autogen___2(__attribute__ ((unused)) struct s3 *_X4_dstS2s3_2, __attribute__ ((unused)) struct s3 _X4_srcS2s3_2){
    218218        {
    219219            ((void)((*_X4_dstS2s3_2)._X1ii_2=_X4_srcS2s3_2._X1ii_2) /* ?{} */);
     
    221221
    222222    }
    223     inline void _X11_destructorFv_S2s3_autogen___2(struct s3 *_X4_dstS2s3_2){
     223    inline void _X11_destructorFv_S2s3_autogen___2(__attribute__ ((unused)) struct s3 *_X4_dstS2s3_2){
    224224        {
    225225            ((void)((*_X4_dstS2s3_2)._X1ii_2) /* ^?{} */);
     
    227227
    228228    }
    229     inline struct s3 _X16_operator_assignFS2s3_S2s3S2s3_autogen___2(struct s3 *_X4_dstS2s3_2, struct s3 _X4_srcS2s3_2){
    230         struct s3 _X4_retS2s3_2;
     229    inline struct s3 _X16_operator_assignFS2s3_S2s3S2s3_autogen___2(__attribute__ ((unused)) struct s3 *_X4_dstS2s3_2, __attribute__ ((unused)) struct s3 _X4_srcS2s3_2){
     230        __attribute__ ((unused)) struct s3 _X4_retS2s3_2;
    231231        {
    232232            ((void)((*_X4_dstS2s3_2)._X1ii_2=_X4_srcS2s3_2._X1ii_2));
     
    239239        return _X4_retS2s3_2;
    240240    }
    241     inline void _X12_constructorFv_S2s3i_autogen___2(struct s3 *_X4_dstS2s3_2, signed int _X1ii_2){
     241    inline void _X12_constructorFv_S2s3i_autogen___2(__attribute__ ((unused)) struct s3 *_X4_dstS2s3_2, signed int _X1ii_2){
    242242        {
    243243            ((void)((*_X4_dstS2s3_2)._X1ii_2=_X1ii_2) /* ?{} */);
     
    250250        signed int _X1ii_2;
    251251    };
    252     inline void _X12_constructorFv_S2s4_autogen___2(struct s4 *_X4_dstS2s4_2){
     252    inline void _X12_constructorFv_S2s4_autogen___2(__attribute__ ((unused)) struct s4 *_X4_dstS2s4_2){
    253253        {
    254254            ((void)((*_X4_dstS2s4_2)._X1ii_2) /* ?{} */);
     
    256256
    257257    }
    258     inline void _X12_constructorFv_S2s4S2s4_autogen___2(struct s4 *_X4_dstS2s4_2, struct s4 _X4_srcS2s4_2){
     258    inline void _X12_constructorFv_S2s4S2s4_autogen___2(__attribute__ ((unused)) struct s4 *_X4_dstS2s4_2, __attribute__ ((unused)) struct s4 _X4_srcS2s4_2){
    259259        {
    260260            ((void)((*_X4_dstS2s4_2)._X1ii_2=_X4_srcS2s4_2._X1ii_2) /* ?{} */);
     
    262262
    263263    }
    264     inline void _X11_destructorFv_S2s4_autogen___2(struct s4 *_X4_dstS2s4_2){
     264    inline void _X11_destructorFv_S2s4_autogen___2(__attribute__ ((unused)) struct s4 *_X4_dstS2s4_2){
    265265        {
    266266            ((void)((*_X4_dstS2s4_2)._X1ii_2) /* ^?{} */);
     
    268268
    269269    }
    270     inline struct s4 _X16_operator_assignFS2s4_S2s4S2s4_autogen___2(struct s4 *_X4_dstS2s4_2, struct s4 _X4_srcS2s4_2){
    271         struct s4 _X4_retS2s4_2;
     270    inline struct s4 _X16_operator_assignFS2s4_S2s4S2s4_autogen___2(__attribute__ ((unused)) struct s4 *_X4_dstS2s4_2, __attribute__ ((unused)) struct s4 _X4_srcS2s4_2){
     271        __attribute__ ((unused)) struct s4 _X4_retS2s4_2;
    272272        {
    273273            ((void)((*_X4_dstS2s4_2)._X1ii_2=_X4_srcS2s4_2._X1ii_2));
     
    280280        return _X4_retS2s4_2;
    281281    }
    282     inline void _X12_constructorFv_S2s4i_autogen___2(struct s4 *_X4_dstS2s4_2, signed int _X1ii_2){
     282    inline void _X12_constructorFv_S2s4i_autogen___2(__attribute__ ((unused)) struct s4 *_X4_dstS2s4_2, signed int _X1ii_2){
    283283        {
    284284            ((void)((*_X4_dstS2s4_2)._X1ii_2=_X1ii_2) /* ?{} */);
Note: See TracChangeset for help on using the changeset viewer.