Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    raf9da5f r2e5fa345  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May 16 09:37:17 2018
    13 // Update Count     : 1070
     12// Last Modified On : Thu Apr 26 13:45:10 2018
     13// Update Count     : 1064
    1414//
    1515
     
    5454
    5555DeclarationNode::DeclarationNode() :
     56                builtin( NoBuiltinType ),
    5657                type( nullptr ),
    5758                bitfieldWidth( nullptr ),
     
    101102        newnode->name = name ? new string( *name ) : nullptr;
    102103
     104        newnode->builtin = NoBuiltinType;
    103105        newnode->type = maybeClone( type );
    104106        newnode->storageClasses = storageClasses;
     
    527529
    528530DeclarationNode * DeclarationNode::addQualifiers( DeclarationNode * q ) {
    529         if ( ! q ) { return this; }                                                     // empty qualifier
     531        if ( ! q ) { delete q; return this; }                           // empty qualifier
    530532
    531533        checkSpecifiers( q );
     
    561563
    562564        checkQualifiers( type, q->type );
    563         if ( (builtin == Zero || builtin == One) && q->type->qualifiers.val != 0 && error.length() == 0 ) {
     565        if ( (builtin == Zero || builtin == One) && error.length() == 0 ) {
    564566                SemanticWarning( yylloc, Warning::BadQualifiersZeroOne, Type::QualifiersNames[ilog2( q->type->qualifiers.val )], builtinTypeNames[builtin] );
     567//              appendError( error, string( "questionable qualifiers" ) );
    565568        } // if
    566569        addQualifiersToType( q->type, type );
Note: See TracChangeset for help on using the changeset viewer.