Side step another unused variable warning with silly (yet not too

offensive) code.

svn path=/trunk/kdebase/kwin/; revision=191576
This commit is contained in:
Alex Zepeda 2002-12-02 10:08:09 +00:00
parent d9e4791c44
commit 3702f720ed

View file

@ -17,6 +17,9 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*
*/
#include <config.h>
@ -571,6 +574,10 @@ void KAdvancedConfig::setXinerama(bool on) {
xineramaMovementEnable->setEnabled(on);
xineramaPlacementEnable->setEnabled(on);
xineramaMaximizeEnable->setEnabled(on);
#else
// Silly way to work around unused variable
if (on == on)
return;
#endif
}