From 21ab254164ab0891e12dbd037fc4e163ff9f6e9d Mon Sep 17 00:00:00 2001 From: Tomi Korpipaa Date: Wed, 10 Feb 2021 10:35:00 +0200 Subject: Fix macOS build that has -Wunused-function as error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clang may interpret static inline function as unused, although it should not. Pragma it out for clang. Fixes: QTBUG-91053 Pick-to: 6.1 Change-Id: I8fd8bec5236752189deff8a2f6ceb62e572dca30 Reviewed-by: Antti Määttä --- examples/datavisualization/qmloscilloscope/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/datavisualization/qmloscilloscope') diff --git a/examples/datavisualization/qmloscilloscope/main.cpp b/examples/datavisualization/qmloscilloscope/main.cpp index a874f3d8..f0cb9b68 100644 --- a/examples/datavisualization/qmloscilloscope/main.cpp +++ b/examples/datavisualization/qmloscilloscope/main.cpp @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) // Enable antialiasing in direct rendering mode //! [1] - viewer.setFormat(qDefaultSurfaceFormat()); + viewer.setFormat(qDefaultSurfaceFormat(true)); //! [1] // The following are needed to make examples run without having to install the module -- cgit v1.2.3