[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara caolanm at redhat.com
Tue Dec 13 21:01:55 UTC 2016


 vcl/unx/gtk3/gtk3gtkinst.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit fab6eaa68b1c312a4cdaeb8c79ac1ab9c3aad7aa
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Dec 13 21:00:38 2016 +0000

    clang: -Werror,-Wunused-private-field with gcc < 3.16.0
    
    Change-Id: I6cf2effd185a2156c2bf212264d5710a7680f223

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index e6f5d24..a8048b5 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -919,12 +919,16 @@ Reference< XInterface > GtkInstance::CreateDragSource()
 class GtkOpenGLContext : public OpenGLContext
 {
     GLWindow m_aGLWin;
+#if GTK_CHECK_VERSION(3,16,0)
     GtkWidget *m_pGLArea;
+#endif
 
 public:
     GtkOpenGLContext()
         : OpenGLContext()
+#if GTK_CHECK_VERSION(3,16,0)
         , m_pGLArea(nullptr)
+#endif
     {
     }
 


More information about the Libreoffice-commits mailing list