Ticket #7063: libs_libmyth-use-void

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

Use (void) casting instead of assignment.

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 e3a2a8a..0e45d78 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)