path: root/src/plugins/platforms/linuxfb/
diff options
authorThiago Macieira <>2014-11-22 16:49:11 -0800
committerThiago Macieira <>2014-11-23 22:14:40 +0100
commit13b939c7f41bceb2061e549923eab242326e9bb5 (patch)
tree684e31bb187c012e1fc89aad3b5f862a36801ee0 /src/plugins/platforms/linuxfb/
parent4fec31dcc003ccd107b447b2ee86dab1eedae642 (diff)
Fix warning about QDeviceDiscovery violating ODR rule
When compiling with GCC 4.9's LTO, the compiler realizes that the class looks different in two different compilation units and prints a warning. Adding the necessary #define will make sure that the warning isn't printed. It's possible the warning indicates a real problem, if the class actually got used in those two plugins. I wouldn't know. QtPlatformSupport/private/.../qdevicediscovery_p.h:66:7: warning: type ‘struct QDeviceDiscovery’ violates one definition rule .moc/.../qdevicediscovery_p.h:66:7: note: a type with the same name but different layout is defined in another translation unit Change-Id: I73ca8e553e392b8d368f0deaa318d3e6635d73e1 Reviewed-by: Laszlo Agocs <>
Diffstat (limited to 'src/plugins/platforms/linuxfb/')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/linuxfb/ b/src/plugins/platforms/linuxfb/
index 389d45c29c..5e185e357f 100644
--- a/src/plugins/platforms/linuxfb/
+++ b/src/plugins/platforms/linuxfb/
@@ -9,6 +9,7 @@ QT += core-private gui-private platformsupport-private
SOURCES = main.cpp qlinuxfbintegration.cpp qlinuxfbscreen.cpp
HEADERS = qlinuxfbintegration.h qlinuxfbscreen.h
CONFIG += qpa/genericunixfontdatabase