Ticket #7063: libs_libmyth-use-void-ticket-7063

File libs_libmyth-use-void-ticket-7063, 661 bytes (added by Erik Hovland <erik@…>, 11 years ago)

Same patch as before but against trunk as of 2010-02-03

Line 
1Use (void) casting to suppress compiler warnings.
2
3From: Erik Hovland <erik@hovland.org>
4
5
6---
7
8 mythtv/libs/libmyth/uitypes.cpp |    4 ++--
9 1 files changed, 2 insertions(+), 2 deletions(-)
10
11
12diff --git a/mythtv/libs/libmyth/uitypes.cpp b/mythtv/libs/libmyth/uitypes.cpp
13index 74ab198..700c9dd 100644
14--- a/mythtv/libs/libmyth/uitypes.cpp
15+++ b/mythtv/libs/libmyth/uitypes.cpp
16@@ -214,8 +214,8 @@ UIType::~UIType()
17 void UIType::Draw(QPainter *dr, int drawlayer, int context)
18 {
19     dr->end();
20-    drawlayer = 0;
21-    context = 0;
22+    (void)drawlayer;
23+    (void)context;
24 }
25 
26 void UIType::DrawRegion(QPainter *dr, QRect &area, int drawlayer, int context)