Ignore:
Timestamp:
May 18, 2018, 2:09:21 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
2472a19
Parents:
f6f0cca3 (diff), c7d8100c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/master' into with_gc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    rf6f0cca3 rff29f08  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Apr 20 22:37:20 2018
    13 // Update Count     : 1063
     12// Last Modified On : Wed May 16 09:37:17 2018
     13// Update Count     : 1070
    1414//
    1515
     
    526526
    527527DeclarationNode * DeclarationNode::addQualifiers( DeclarationNode * q ) {
    528         if ( ! q ) { delete q; return this; }                           // empty qualifier
     528        if ( ! q ) { return this; }                                                     // empty qualifier
    529529
    530530        checkSpecifiers( q );
     
    560560
    561561        checkQualifiers( type, q->type );
    562         if ( (builtin == Zero || builtin == One) && error.length() == 0 ) {
     562        if ( (builtin == Zero || builtin == One) && q->type->qualifiers.val != 0 && error.length() == 0 ) {
    563563                SemanticWarning( yylloc, Warning::BadQualifiersZeroOne, Type::QualifiersNames[ilog2( q->type->qualifiers.val )], builtinTypeNames[builtin] );
    564 //              appendError( error, string( "questionable qualifiers" ) );
    565564        } // if
    566565        addQualifiersToType( q->type, type );
     
    782781DeclarationNode * DeclarationNode::addPointer( DeclarationNode * p ) {
    783782        if ( p ) {
    784                 assert( p->type->kind == TypeData::Pointer || TypeData::Reference );
     783                assert( p->type->kind == TypeData::Pointer || p->type->kind == TypeData::Reference );
    785784                setBase( p->type );
    786785                p->type = nullptr;
Note: See TracChangeset for help on using the changeset viewer.