Ignore:
Timestamp:
Sep 21, 2022, 10:52:51 AM (20 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
7f6a7c9, e01eb4a
Parents:
20737104
Message:

Fixed several warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r20737104 r0bd46fd  
    5858
    5959// lex uses __null in a boolean context, it's fine.
    60 #pragma GCC diagnostic ignored "-Wpragmas"
     60#ifdef __clang__
    6161#pragma GCC diagnostic ignored "-Wparentheses-equality"
    62 #pragma GCC diagnostic warning "-Wpragmas"
     62#endif
    6363
    6464extern DeclarationNode * parseTree;
     
    25702570                {
    25712571                        $$ = DeclarationNode::newEnum( $5, $8, true, true, nullptr )->addQualifiers( $4 )->addQualifiers( $6 );
    2572                 }       
     2572                }
    25732573        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt '{' enumerator_list comma_opt '}'
    25742574                {
     
    25852585        ENUM attribute_list_opt identifier
    25862586                { typedefTable.makeTypedef( *$3 ); $$ = DeclarationNode::newEnum( $3, 0, false, false )->addQualifiers( $2 ); }
    2587         | ENUM attribute_list_opt type_name     
     2587        | ENUM attribute_list_opt type_name
    25882588                { typedefTable.makeTypedef( *$3->type->symbolic.name ); $$ = DeclarationNode::newEnum( $3->type->symbolic.name, 0, false, false )->addQualifiers( $2 ); }
    25892589        ;
Note: See TracChangeset for help on using the changeset viewer.