From 899020fc33bcb911c7aa8009dcb24dbdbcee55e0 Mon Sep 17 00:00:00 2001 From: Dennis Kasprzyk Date: Mon, 25 Aug 2008 13:52:46 +0200 Subject: Shut up compiler warnings. --- src/action.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/action.cpp') diff --git a/src/action.cpp b/src/action.cpp index 90fd243..e456bda 100644 --- a/src/action.cpp +++ b/src/action.cpp @@ -154,7 +154,8 @@ bool CompAction::KeyBinding::fromString (CompDisplay *d, const CompString str) { CompString sStr; - unsigned int mods, pos; + unsigned int mods; + size_t pos; KeySym keysym; mods = stringToModifiers (d, str); @@ -261,7 +262,8 @@ CompAction::ButtonBinding::button () bool CompAction::ButtonBinding::fromString (CompDisplay *d, const CompString str) { - unsigned int mods, pos; + unsigned int mods; + size_t pos; mods = stringToModifiers (d, str); @@ -467,7 +469,8 @@ CompAction::buttonFromString (CompDisplay *d, const CompString str) void CompAction::edgeMaskFromString (const CompString str) { - unsigned int edgeMask = 0, pos; + unsigned int edgeMask = 0; + size_t pos; for (int i = 0; i < SCREEN_EDGE_NUM; i++) { -- cgit v1.1