Changeset 119:fa21e787e72f in rrlib_rtti


Ignore:
Timestamp:
20.03.2019 22:16:57 (6 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
120:a7f94b523373, 121:f82d3771c790
Phase:
public
Message:

Removes 'unused variable' compiler warnings at static data type registration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tDataType.cpp

    r90 r119  
    8686template class tDataType<rrlib::time::tDuration>; 
    8787 
    88 static tDataType<std::string> cSTRING_TYPE; 
    89 static tDataType<uint8_t> cUINT8_TYPE; 
    90 static tDataType<uint16_t> cUINT16_TYPE; 
    91 static tDataType<unsigned int> cUINT_TYPE; 
    92 static tDataType<unsigned long long int> cULONGLONGINT_TYPE; 
    93 static tDataType<int8_t> cINT8_TYPE; 
    94 static tDataType<int16_t> cINT16_TYPE; 
    95 static tDataType<int> cINT_TYPE; 
    96 static tDataType<long long int> cLONGLONGINT_TYPE; 
    97 static tDataType<double> cDOUBLE_TYPE; 
    98 static tDataType<float> cFLOAT_TYPE; 
    99 static tDataType<bool> cBOOL_TYPE; 
    100 static tDataType<rrlib::time::tTimestamp> cTIMESTAMP_TYPE; 
    101 static tDataType<rrlib::time::tDuration> cDURATION_TYPE; 
     88__attribute__((unused)) 
     89static tType cTYPES[] = 
     90{ 
     91  tDataType<std::string>(), 
     92  tDataType<uint8_t>(), 
     93  tDataType<uint16_t>(), 
     94  tDataType<unsigned int>(), 
     95  tDataType<unsigned long long int>(), 
     96  tDataType<int8_t>(), 
     97  tDataType<int16_t>(), 
     98  tDataType<int>(), 
     99  tDataType<long long int>(), 
     100  tDataType<double>(), 
     101  tDataType<float>(), 
     102  tDataType<bool>(), 
     103  tDataType<rrlib::time::tTimestamp>(), 
     104  tDataType<rrlib::time::tDuration>() 
     105}; 
    102106 
    103107//---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.