From: Mikko Rasa Date: Sun, 12 Oct 2014 14:11:04 +0000 (+0300) Subject: Avoid compiler warning for a declared but unused function X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5b06f17bd09b4aaaa295f167566ca52f70db5c27;p=libs%2Fgui.git Avoid compiler warning for a declared but unused function --- diff --git a/source/graphics/x11/display.cpp b/source/graphics/x11/display.cpp index 7b8f9da..15c69a9 100644 --- a/source/graphics/x11/display.cpp +++ b/source/graphics/x11/display.cpp @@ -60,14 +60,14 @@ inline Rotation rotation_to_sys(Msp::Graphics::VideoRotation r) default: return RR_Rotate_0; } } -#endif -bool monitor_x_compare(const Msp::Graphics::Monitor &m1, const Msp::Graphics::Monitor &m2) +inline bool monitor_x_compare(const Msp::Graphics::Monitor &m1, const Msp::Graphics::Monitor &m2) { if(m1.desktop_mode && !m2.desktop_mode) return true; return m1.x