]> git.tdb.fi Git - libs/gui.git/commitdiff
Avoid compiler warning for a declared but unused function
authorMikko Rasa <tdb@tdb.fi>
Sun, 12 Oct 2014 14:11:04 +0000 (17:11 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 12 Oct 2014 14:11:04 +0000 (17:11 +0300)
source/graphics/x11/display.cpp

index 7b8f9da91cb06bd378d12ff73343444ae9664be7..15c69a9c604495132718adb1d526408f4a209441 100644 (file)
@@ -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<m2.x;
 }
+#endif
 
 inline unsigned mode_width(const Msp::Graphics::VideoMode &m, Msp::Graphics::VideoRotation r)
 {