[mythtv-commits] Ticket #12996: Fix compiler warnings in trunk
MythTV
noreply at mythtv.org
Fri Feb 10 19:20:32 UTC 2017
#12996: Fix compiler warnings in trunk
--------------------------------------+-----------------------------
Reporter: David Hampton <mythtv@…> | Owner:
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: 29.0
Component: MythTV - General | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
--------------------------------------+-----------------------------
Comment (by David Hampton <mythtv@…>):
Commenting out the variable name is a harder restriction than using the
Q_UNUSED() macro. The former prevents any accidental use of the variable
in the function, while the latter simply shuts up the compiler by
generating a fake reference to the variable. I.E. Q_UNUSED(x) generates
"(void)x". I used the macro as I thought that was "the Qt way", but I'm
happy to rework the patch if that's what the devs would like.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12996#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list