Changeset 4175659


Ignore:
Timestamp:
Dec 2, 2024, 3:21:25 PM (2 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
fc276f3
Parents:
1c0a3a4
Message:

remove BadQualifiersZeroOne? warning message

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.hpp

    r1c0a3a4 r4175659  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Dec 14 13:48:07 2023
    13 // Update Count     : 72
     12// Last Modified On : Mon Dec  2 15:14:13 2024
     13// Update Count     : 75
    1414//
    1515
     
    6060        {"self-assign"              , Severity::Warn, "self assignment of expression: %s"                          },
    6161        {"reference-conversion"     , Severity::Warn, "rvalue to reference conversion of rvalue: %s"               },
    62         {"qualifiers-zero_t-one_t"  , Severity::Warn, "questionable use of type qualifier(s) with %s"              },
    6362        {"aggregate-forward-decl"   , Severity::Warn, "forward declaration of nested aggregate: %s"                },
    6463        {"superfluous-decl"         , Severity::Warn, "declaration does not allocate storage: %s"                  },
     
    7271        SelfAssignment,
    7372        RvalueToReferenceConversion,
    74         BadQualifiersZeroOne,
    7573        AggrForwardDecl,
    7674        SuperfluousDecl,
  • src/Parser/DeclarationNode.cpp

    r1c0a3a4 r4175659  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Aug 22 14:11:47 2024
    13 // Update Count     : 1555
     12// Last Modified On : Mon Dec  2 15:04:12 2024
     13// Update Count     : 1558
    1414//
    1515
     
    455455
    456456        checkQualifiers( type, q->type );
    457         TypeData::BuiltinType const builtin = type->builtintype;
    458         if ( (builtin == TypeData::Zero || builtin == TypeData::One) && q->type->qualifiers.any() && error.length() == 0 ) {
    459                 SemanticWarning( yylloc, Warning::BadQualifiersZeroOne, TypeData::builtinTypeNames[builtin] );
    460         } // if
    461457        type = ::addQualifiers( type, q->type );
    462458        q->type = nullptr;
Note: See TracChangeset for help on using the changeset viewer.