build fix: cc1plus: warnings being treated as errors
../src/devices/mesh/dot11s/hwmp-protocol.cc: In member function ‘void ns3::dot11s::HwmpProtocol::ReceivePrep(ns3::dot11s::IePrep, ns3::Mac48Address, uint32_t, uint32_t)’: ../src/devices/mesh/dot11s/hwmp-protocol.cc:443: error: suggest parentheses around && within || Build failed
This commit is contained in:
@@ -440,7 +440,7 @@ HwmpProtocol::ReceivePrep (IePrep prep, Mac48Address from, uint32_t interface, u
|
||||
//Add a reactive path only if it is better than existing:
|
||||
if (
|
||||
(result.retransmitter == Mac48Address::GetBroadcast ()) ||
|
||||
(result.retransmitter != Mac48Address::GetBroadcast ()) && (result.metric > prep.GetMetric ())
|
||||
(result.metric > prep.GetMetric ())
|
||||
)
|
||||
{
|
||||
m_rtable->AddPrecursor (prep.GetDestinationAddress (), interface, from);
|
||||
|
||||
Reference in New Issue
Block a user