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

offensive) code.

svn path=/trunk/kdebase/kwin/; revision=191576
icc-effect-5.14.5
Alex Zepeda 2002-12-02 10:08:09 +00:00
parent d9e4791c44
commit 3702f720ed
1 changed files with 7 additions and 0 deletions

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
}