Changeset af9da5f
- Timestamp:
- May 16, 2018, 11:47:12 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 157d094
- Parents:
- a61fa0bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
ra61fa0bb raf9da5f 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Apr 26 13:45:10201813 // Update Count : 10 6412 // Last Modified On : Wed May 16 09:37:17 2018 13 // Update Count : 1070 14 14 // 15 15 … … 527 527 528 528 DeclarationNode * DeclarationNode::addQualifiers( DeclarationNode * q ) { 529 if ( ! q ) { delete q; return this; }// empty qualifier529 if ( ! q ) { return this; } // empty qualifier 530 530 531 531 checkSpecifiers( q ); … … 561 561 562 562 checkQualifiers( type, q->type ); 563 if ( (builtin == Zero || builtin == One) && error.length() == 0 ) {563 if ( (builtin == Zero || builtin == One) && q->type->qualifiers.val != 0 && error.length() == 0 ) { 564 564 SemanticWarning( yylloc, Warning::BadQualifiersZeroOne, Type::QualifiersNames[ilog2( q->type->qualifiers.val )], builtinTypeNames[builtin] ); 565 // appendError( error, string( "questionable qualifiers" ) );566 565 } // if 567 566 addQualifiersToType( q->type, type );
Note: See TracChangeset
for help on using the changeset viewer.