diff options
author | simonb <simonb> | 2006-04-16 11:18:22 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-16 11:18:22 (GMT) |
commit | 553104ee1d53104fa0790a9793a7047c61dd073f (patch) | |
tree | 5ccc4968b10f604c05aaa6d3bb13fc206fab8faa /src/FbTk/FbPixmap.cc | |
parent | 02aa83a59eb3d9e209449b38808635f9e293a17a (diff) | |
download | fluxbox-553104ee1d53104fa0790a9793a7047c61dd073f.zip fluxbox-553104ee1d53104fa0790a9793a7047c61dd073f.tar.bz2 |
fix all compiler warnings with -Wall
Diffstat (limited to 'src/FbTk/FbPixmap.cc')
-rw-r--r-- | src/FbTk/FbPixmap.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/FbTk/FbPixmap.cc b/src/FbTk/FbPixmap.cc index 0df087d..675e838 100644 --- a/src/FbTk/FbPixmap.cc +++ b/src/FbTk/FbPixmap.cc | |||
@@ -73,7 +73,7 @@ FbPixmap::FbPixmap(Pixmap pm):m_pm(0), | |||
73 | 73 | ||
74 | FbPixmap::FbPixmap(const FbDrawable &src, | 74 | FbPixmap::FbPixmap(const FbDrawable &src, |
75 | unsigned int width, unsigned int height, | 75 | unsigned int width, unsigned int height, |
76 | int depth):m_pm(0), | 76 | unsigned int depth):m_pm(0), |
77 | m_width(0), m_height(0), | 77 | m_width(0), m_height(0), |
78 | m_depth(0) { | 78 | m_depth(0) { |
79 | 79 | ||
@@ -82,7 +82,7 @@ FbPixmap::FbPixmap(const FbDrawable &src, | |||
82 | 82 | ||
83 | FbPixmap::FbPixmap(Drawable src, | 83 | FbPixmap::FbPixmap(Drawable src, |
84 | unsigned int width, unsigned int height, | 84 | unsigned int width, unsigned int height, |
85 | int depth):m_pm(0), | 85 | unsigned int depth):m_pm(0), |
86 | m_width(0), m_height(0), | 86 | m_width(0), m_height(0), |
87 | m_depth(0) { | 87 | m_depth(0) { |
88 | 88 | ||
@@ -157,7 +157,7 @@ void FbPixmap::copy(const FbPixmap &the_copy) { | |||
157 | } | 157 | } |
158 | 158 | ||
159 | // screen doesn't count if depth is "zero"... | 159 | // screen doesn't count if depth is "zero"... |
160 | void FbPixmap::copy(Pixmap pm, int depth, int screen_num) { | 160 | void FbPixmap::copy(Pixmap pm, unsigned int depth, int screen_num) { |
161 | free(); | 161 | free(); |
162 | if (pm == 0) | 162 | if (pm == 0) |
163 | return; | 163 | return; |
@@ -248,6 +248,8 @@ void FbPixmap::rotate(FbTk::Orientation orient) { | |||
248 | dirx = 1; | 248 | dirx = 1; |
249 | diry = -1; | 249 | diry = -1; |
250 | break; | 250 | break; |
251 | default: // kill warning | ||
252 | break; | ||
251 | } | 253 | } |
252 | 254 | ||
253 | 255 | ||
@@ -365,7 +367,6 @@ void FbPixmap::rootwinPropertyNotify(int screen_num, Atom atom) { | |||
365 | unsigned long items_read, items_left; | 367 | unsigned long items_read, items_left; |
366 | unsigned long *data; | 368 | unsigned long *data; |
367 | 369 | ||
368 | unsigned int prop = 0; | ||
369 | if (XGetWindowProperty(display(), | 370 | if (XGetWindowProperty(display(), |
370 | RootWindow(display(), i), | 371 | RootWindow(display(), i), |
371 | root_prop_atoms[i], | 372 | root_prop_atoms[i], |
@@ -474,7 +475,7 @@ void FbPixmap::free() { | |||
474 | 475 | ||
475 | void FbPixmap::create(Drawable src, | 476 | void FbPixmap::create(Drawable src, |
476 | unsigned int width, unsigned int height, | 477 | unsigned int width, unsigned int height, |
477 | int depth) { | 478 | unsigned int depth) { |
478 | if (src == 0) | 479 | if (src == 0) |
479 | return; | 480 | return; |
480 | 481 | ||