[Patch] MediaJack.cpp: fix gcc6 build
In CORTEX_NAMESPACE compareTypeAndID(), gcc6 warns '-Werror=tautological-compare'.
It seems there is same variable comparison at line 783 and 787.
C++ /home/haiku/haiku/haiku/generated-gcc6/objects/haiku/x86/release/apps/cortex/MediaRoutingView/MediaJack.o
/home/haiku/haiku/haiku/src/apps/cortex/MediaRoutingView/MediaJack.cpp: In function 'int compareTypeAndID(const void*, const void*)':
/home/haiku/haiku/haiku/src/apps/cortex/MediaRoutingView/MediaJack.cpp:783:25: error: self-comparison always evaluates to false [-Werror=tautological-compare]
if (lJack->m_jackType < lJack->m_jackType)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/home/haiku/haiku/haiku/src/apps/cortex/MediaRoutingView/MediaJack.cpp:787:25: error: self-comparison always evaluates to true [-Werror=tautological-compare]
if (lJack->m_jackType == lJack->m_jackType)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Change History
(4)
Owner: |
changed from nobody to Barrett
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Applied in hrev50294. Thanks!