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/extension.x64.txt

    rf979f0ba r35cc6d4  
    77    __extension__ signed int _X1ci_1;
    88};
    9 static inline void _X12_constructorFv_S1S_autogen___1(struct S *_X4_dstS1S_1){
     9static inline void _X12_constructorFv_S1S_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1){
    1010    {
    1111        ((void)((*_X4_dstS1S_1)._X1ai_1) /* ?{} */);
     
    2121
    2222}
    23 static inline void _X12_constructorFv_S1SS1S_autogen___1(struct S *_X4_dstS1S_1, struct S _X4_srcS1S_1){
     23static inline void _X12_constructorFv_S1SS1S_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1, __attribute__ ((unused)) struct S _X4_srcS1S_1){
    2424    {
    2525        ((void)((*_X4_dstS1S_1)._X1ai_1=_X4_srcS1S_1._X1ai_1) /* ?{} */);
     
    3535
    3636}
    37 static inline void _X11_destructorFv_S1S_autogen___1(struct S *_X4_dstS1S_1){
     37static inline void _X11_destructorFv_S1S_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1){
    3838    {
    3939        ((void)((*_X4_dstS1S_1)._X1ci_1) /* ^?{} */);
     
    4949
    5050}
    51 static inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___1(struct S *_X4_dstS1S_1, struct S _X4_srcS1S_1){
    52     struct S _X4_retS1S_1;
     51static inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1, __attribute__ ((unused)) struct S _X4_srcS1S_1){
     52    __attribute__ ((unused)) struct S _X4_retS1S_1;
    5353    {
    5454        ((void)((*_X4_dstS1S_1)._X1ai_1=_X4_srcS1S_1._X1ai_1));
     
    6969    return _X4_retS1S_1;
    7070}
    71 static inline void _X12_constructorFv_S1Si_autogen___1(struct S *_X4_dstS1S_1, signed int _X1ai_1){
     71static inline void _X12_constructorFv_S1Si_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1, signed int _X1ai_1){
    7272    {
    7373        ((void)((*_X4_dstS1S_1)._X1ai_1=_X1ai_1) /* ?{} */);
     
    8383
    8484}
    85 static inline void _X12_constructorFv_S1Sii_autogen___1(struct S *_X4_dstS1S_1, signed int _X1ai_1, signed int _X1bi_1){
     85static inline void _X12_constructorFv_S1Sii_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1, signed int _X1ai_1, signed int _X1bi_1){
    8686    {
    8787        ((void)((*_X4_dstS1S_1)._X1ai_1=_X1ai_1) /* ?{} */);
     
    9797
    9898}
    99 static inline void _X12_constructorFv_S1Siii_autogen___1(struct S *_X4_dstS1S_1, signed int _X1ai_1, signed int _X1bi_1, signed int _X1ci_1){
     99static inline void _X12_constructorFv_S1Siii_autogen___1(__attribute__ ((unused)) struct S *_X4_dstS1S_1, signed int _X1ai_1, signed int _X1bi_1, signed int _X1ci_1){
    100100    {
    101101        ((void)((*_X4_dstS1S_1)._X1ai_1=_X1ai_1) /* ?{} */);
     
    118118static inline void _X12_constructorFv_U1U_autogen___1(__attribute__ ((unused)) union U *_X4_dstU1U_1){
    119119}
    120 static inline void _X12_constructorFv_U1UU1U_autogen___1(union U *_X4_dstU1U_1, union U _X4_srcU1U_1){
     120static inline void _X12_constructorFv_U1UU1U_autogen___1(__attribute__ ((unused)) union U *_X4_dstU1U_1, __attribute__ ((unused)) union U _X4_srcU1U_1){
    121121    {
    122122        ((void)__builtin_memcpy(((void *)_X4_dstU1U_1), ((const void *)(&_X4_srcU1U_1)), sizeof(union U )));
     
    126126static inline void _X11_destructorFv_U1U_autogen___1(__attribute__ ((unused)) union U *_X4_dstU1U_1){
    127127}
    128 static inline union U _X16_operator_assignFU1U_U1UU1U_autogen___1(union U *_X4_dstU1U_1, union U _X4_srcU1U_1){
    129     union U _X4_retU1U_1;
     128static inline union U _X16_operator_assignFU1U_U1UU1U_autogen___1(__attribute__ ((unused)) union U *_X4_dstU1U_1, __attribute__ ((unused)) union U _X4_srcU1U_1){
     129    __attribute__ ((unused)) union U _X4_retU1U_1;
    130130    {
    131131        ((void)__builtin_memcpy(((void *)_X4_dstU1U_1), ((const void *)(&_X4_srcU1U_1)), sizeof(union U )));
     
    138138    return _X4_retU1U_1;
    139139}
    140 static inline void _X12_constructorFv_U1Ui_autogen___1(union U *_X4_dstU1U_1, signed int _X1ai_1){
     140static inline void _X12_constructorFv_U1Ui_autogen___1(__attribute__ ((unused)) union U *_X4_dstU1U_1, signed int _X1ai_1){
    141141    {
    142142        ((void)__builtin_memcpy(((void *)_X4_dstU1U_1), ((const void *)(&_X1ai_1)), sizeof(signed int )));
     
    162162        __extension__ signed int *_X1zPi_2;
    163163    };
    164     inline void _X12_constructorFv_S1S_autogen___2(struct S *_X4_dstS1S_2){
     164    inline void _X12_constructorFv_S1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2){
    165165        {
    166166            ((void)((*_X4_dstS1S_2)._X1ai_2) /* ?{} */);
     
    188188
    189189    }
    190     inline void _X12_constructorFv_S1SS1S_autogen___2(struct S *_X4_dstS1S_2, struct S _X4_srcS1S_2){
     190    inline void _X12_constructorFv_S1SS1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, __attribute__ ((unused)) struct S _X4_srcS1S_2){
    191191        {
    192192            ((void)((*_X4_dstS1S_2)._X1ai_2=_X4_srcS1S_2._X1ai_2) /* ?{} */);
     
    214214
    215215    }
    216     inline void _X11_destructorFv_S1S_autogen___2(struct S *_X4_dstS1S_2){
     216    inline void _X11_destructorFv_S1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2){
    217217        {
    218218            ((void)((*_X4_dstS1S_2)._X1zPi_2) /* ^?{} */);
     
    240240
    241241    }
    242     inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___2(struct S *_X4_dstS1S_2, struct S _X4_srcS1S_2){
    243         struct S _X4_retS1S_2;
     242    inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, __attribute__ ((unused)) struct S _X4_srcS1S_2){
     243        __attribute__ ((unused)) struct S _X4_retS1S_2;
    244244        {
    245245            ((void)((*_X4_dstS1S_2)._X1ai_2=_X4_srcS1S_2._X1ai_2));
     
    272272        return _X4_retS1S_2;
    273273    }
    274     inline void _X12_constructorFv_S1Si_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2){
     274    inline void _X12_constructorFv_S1Si_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, signed int _X1ai_2){
    275275        {
    276276            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
     
    298298
    299299    }
    300     inline void _X12_constructorFv_S1Sii_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2){
     300    inline void _X12_constructorFv_S1Sii_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2){
    301301        {
    302302            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
     
    324324
    325325    }
    326     inline void _X12_constructorFv_S1Siii_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2){
     326    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){
    327327        {
    328328            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
     
    350350
    351351    }
    352     inline void _X12_constructorFv_S1SiiiPi_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2, signed int *_X1xPi_2){
     352    inline void _X12_constructorFv_S1SiiiPi_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2, signed int *_X1xPi_2){
    353353        {
    354354            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
     
    376376
    377377    }
    378     inline void _X12_constructorFv_S1SiiiPiPi_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2, signed int *_X1xPi_2, signed int *_X1yPi_2){
     378    inline void _X12_constructorFv_S1SiiiPiPi_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2, signed int *_X1xPi_2, signed int *_X1yPi_2){
    379379        {
    380380            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
     
    402402
    403403    }
    404     inline void _X12_constructorFv_S1SiiiPiPiPi_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2, signed int *_X1xPi_2, signed int *_X1yPi_2, signed int *_X1zPi_2){
     404    inline void _X12_constructorFv_S1SiiiPiPiPi_autogen___2(__attribute__ ((unused)) struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2, signed int *_X1xPi_2, signed int *_X1yPi_2, signed int *_X1zPi_2){
    405405        {
    406406            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
Note: See TracChangeset for help on using the changeset viewer.