From c770bb5d22f271e4c7b5633eee4ff00ab480dc99 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 10 Jul 2006 19:06:10 +0000 Subject: [PATCH] avoid if() statement compiler warning svn path=/trunk/KDE/kdebase/workspace/; revision=560604 --- data/update_window_settings.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/update_window_settings.cpp b/data/update_window_settings.cpp index 6481fd7df5..8b32c2c911 100644 --- a/data/update_window_settings.cpp +++ b/data/update_window_settings.cpp @@ -120,8 +120,9 @@ void writeRules( KConfig& cfg ) cfg.writeEntry( "windowrole", ( const char* ) info->windowRole ); cfg.writeEntry( "windowrolematch", 1 ); } - if( info->windowType == static_cast< NET::WindowType >( -2 )) // undefined - ; // all types + if( info->windowType == static_cast< NET::WindowType >( -2 )) { // undefined + // all types + } if( info->windowType == NET::Unknown ) cfg.writeEntry( "types", (int)NET::NormalMask ); else