[mythtv-commits] Ticket #12764: Bug fix - compilation of abs function with latest gcc/libstdc++
MythTV
noreply at mythtv.org
Wed Jun 8 11:08:47 UTC 2016
#12764: Bug fix - compilation of abs function with latest gcc/libstdc++
-------------------------------------------------+-------------------------
Reporter: Gary Buhrmaster <gary.buhrmaster@…> | Owner: stuarta
Type: Patch - Bug Fix | Status:
| assigned
Priority: minor | Milestone: 0.28.1
Component: MythTV - Video Library | Version: Master
| Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------------------+-------------------------
Changes (by stuarta):
* owner: jyavenard => stuarta
* status: new => assigned
* milestone: unknown => 0.28.1
Comment:
Does this also work if you do the change as follows??
{{{
diff --git a/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
b/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
index 1140372..e9cbf8f 100644
--- a/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
+++ b/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
@@ -23,7 +23,7 @@ void VideoVisualCircles::DrawPriv(MythPainter *painter,
QPaintDevice* device)
painter->Begin(device);
for (int i = 0; i < count; i++, rad += m_range, red += incr, green -=
incr)
{
- double mag = abs((m_magnitudes[i] + m_magnitudes[i + count]) /
2.0);
+ double mag = ::abs((m_magnitudes[i] + m_magnitudes[i + count]) /
2.0);
if (mag > 1.0)
{
pen.setWidth((int)mag);
}}}
This forces use of the stdlib abs function
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12764#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list