[vlc-commits] qt: variables: silence unused variable warning

Alexandre Janniaux git at videolan.org
Sun Jul 28 08:36:03 CEST 2019


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Jul 25 01:14:54 2019 +0200| [1634f9660b823ef310f38be3a7d7824ac2c2cda4] | committer: Jean-Baptiste Kempf

qt: variables: silence unused variable warning

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1634f9660b823ef310f38be3a7d7824ac2c2cda4
---

 modules/gui/qt/adapters/variables.hpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/qt/adapters/variables.hpp b/modules/gui/qt/adapters/variables.hpp
index 15421f5c1b..69c5f6f2d9 100644
--- a/modules/gui/qt/adapters/variables.hpp
+++ b/modules/gui/qt/adapters/variables.hpp
@@ -120,6 +120,9 @@ public:
         , m_property(property)
     {
         cref.self = this;
+        /* This parameter is later used by derivative classes, and only helps
+         * the type inference here. */
+        VLC_UNUSED(object);
     }
 
     virtual ~QVLCVariable()



More information about the vlc-commits mailing list