Skip to content
Snippets Groups Projects
Commit 5bb659d6 authored by Rosen Matev's avatar Rosen Matev :sunny:
Browse files

Fix warnings from super project build

such as

```
/home/rmatev/stackm/Gaudi/GaudiKernel/include/Gaudi/Property.h:203:22:
warning: comparison of integer expressions of different signedness:
'const StorageType' {aka 'const unsigned int'} and 'const int'
[-Wsign-compare]
  203 |       return m_value == other;
      |              ~~~~~~~~^~~~~~~~
```
parent de1ea843
No related branches found
No related tags found
1 merge request!3778Fix warnings from super project build
Pipeline #4501075 passed
......@@ -56,7 +56,7 @@ namespace DataPacking::Buffer {
// if ( this->msgLevel( MSG::DEBUG ) ) this->debug() << "Input location " << m_data << " empty." << endmsg;
// return {0};
//}
if ( m_encodingKey == 0 ) {
if ( m_encodingKey == 0u ) {
throw GaudiException( "encoding key is zero", __PRETTY_FUNCTION__, StatusCode::FAILURE );
++m_zero_key;
}
......
......@@ -101,7 +101,7 @@ namespace DataPacking::Buffer {
buffer.reserve( prels->data().size() );
static const Gaudi::StringKey PackedObjectLocations{"PackedObjectLocations"};
if ( m_encodingKey == 0 ) ++m_zero_key;
if ( m_encodingKey == 0u ) ++m_zero_key;
const auto& map = m_annsvc->s2i( m_encodingKey, PackedObjectLocations );
auto iloc = map.find( m_rels.fullKey().key() );
if ( iloc == map.end() ) {
......
......@@ -158,11 +158,12 @@ namespace LHCb::Hlt::DAQ {
outputSummary.setTaskID( pop( data ) );
}
// --------------------------------- get configuration --------------------
if ( key != 0 && m_forcedKey != 0 ) ++m_overrule_nonzero_key;
if ( key != 0 && m_forcedKey != 0u ) ++m_overrule_nonzero_key;
if ( key == 0 ) key = outputSummary.configuredTCK();
if ( key == 0 && m_forcedKey == 0 ) ++m_not_overruled_zero_key;
if ( key == 0 && m_forcedKey == 0u ) ++m_not_overruled_zero_key;
const auto& tbl = m_svc->i2s( m_forcedKey == 0 ? key : m_forcedKey.value(), selectionID_for( m_sourceID.value() ) );
const auto& tbl =
m_svc->i2s( m_forcedKey == 0u ? key : m_forcedKey.value(), selectionID_for( m_sourceID.value() ) );
// ---------------- loop over decisions in the bank body; insert them into the output container
int err = 0;
......
......@@ -114,7 +114,6 @@ namespace LHCb::Hlt::DAQ {
if ( msgLevel( MSG::DEBUG ) ) {
debug() << "Rawbank size " << rawBank->size() << endmsg;
debug() << "Payload size " << payload.size() << endmsg;
debug() << "Compression " << compression << endmsg;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment