summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-02-26 21:10:46 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-02-26 21:10:46 +0000
commit86d292b6c147c72802854433da6bd20db73da44c (patch)
treea4bf88f897eab691bdc401ba5508adc137276e30 /src
parent2668a87af7bbec1bf8a2ae971748f65885fe6fcf (diff)
Adding FALLTHROUGH label to a buch of case fallthroughs in order to make lint happy. STR #2285
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Button.cxx4
-rw-r--r--src/Fl_Color_Chooser.cxx6
-rw-r--r--src/Fl_Counter.cxx4
-rw-r--r--src/Fl_Dial.cxx2
-rw-r--r--src/Fl_Group.cxx4
-rw-r--r--src/Fl_Menu_Button.cxx4
-rw-r--r--src/Fl_Tabs.cxx1
-rw-r--r--src/filename_match.cxx1
8 files changed, 14 insertions, 12 deletions
diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx
index 99e4589b3..be41a01a4 100644
--- a/src/Fl_Button.cxx
+++ b/src/Fl_Button.cxx
@@ -84,7 +84,7 @@ void Fl_Button::draw() {
int Fl_Button::handle(int event) {
int newval;
switch (event) {
- case FL_ENTER:
+ case FL_ENTER: /* FALLTHROUGH */
case FL_LEAVE:
// if ((value_?selection_color():color())==FL_GRAY) redraw();
return 1;
@@ -143,7 +143,7 @@ int Fl_Button::handle(int event) {
do_callback();
} else if (when() & FL_WHEN_RELEASE) do_callback();
return 1;
- case FL_FOCUS :
+ case FL_FOCUS : /* FALLTHROUGH */
case FL_UNFOCUS :
if (Fl::visible_focus()) {
if (box() == FL_NO_BOX) {
diff --git a/src/Fl_Color_Chooser.cxx b/src/Fl_Color_Chooser.cxx
index 072211b86..08c358267 100644
--- a/src/Fl_Color_Chooser.cxx
+++ b/src/Fl_Color_Chooser.cxx
@@ -123,7 +123,7 @@ void Fl_Color_Chooser::set_valuators() {
gvalue.range(0,1); gvalue.step(1,1000); gvalue.value(g_);
bvalue.range(0,1); bvalue.step(1,1000); bvalue.value(b_);
break;
- case M_BYTE:
+ case M_BYTE: /* FALLTHROUGH */
case M_HEX:
rvalue.range(0,255); rvalue.step(1); rvalue.value(int(255*r_+.5));
gvalue.range(0,255); gvalue.step(1); gvalue.value(int(255*g_+.5));
@@ -233,7 +233,7 @@ int Flcc_HueBox::handle(int e) {
if (Fl::event_state(FL_CTRL)) H = ih;
if (c->hsv(H, S, c->value())) c->do_callback();
} return 1;
- case FL_FOCUS :
+ case FL_FOCUS : /* FALLTHROUGH */
case FL_UNFOCUS :
if (Fl::visible_focus()) {
redraw();
@@ -354,7 +354,7 @@ int Flcc_ValueBox::handle(int e) {
if (fabs(Yf-iv)<(3*1.0/h())) Yf = iv;
if (c->hsv(c->hue(),c->saturation(),Yf)) c->do_callback();
} return 1;
- case FL_FOCUS :
+ case FL_FOCUS : /* FALLTHROUGH */
case FL_UNFOCUS :
if (Fl::visible_focus()) {
redraw();
diff --git a/src/Fl_Counter.cxx b/src/Fl_Counter.cxx
index de83f15d5..f41189c60 100644
--- a/src/Fl_Counter.cxx
+++ b/src/Fl_Counter.cxx
@@ -165,13 +165,13 @@ int Fl_Counter::handle(int event) {
return 0;
}
// break not required because of switch...
- case FL_FOCUS :
+ case FL_FOCUS : /* FALLTHROUGH */
case FL_UNFOCUS :
if (Fl::visible_focus()) {
redraw();
return 1;
} else return 0;
- case FL_ENTER :
+ case FL_ENTER : /* FALLTHROUGH */
case FL_LEAVE :
return 1;
default:
diff --git a/src/Fl_Dial.cxx b/src/Fl_Dial.cxx
index fed278ca3..fa9e90651 100644
--- a/src/Fl_Dial.cxx
+++ b/src/Fl_Dial.cxx
@@ -134,7 +134,7 @@ int Fl_Dial::handle(int event, int X, int Y, int W, int H) {
case FL_RELEASE:
handle_release();
return 1;
- case FL_ENTER :
+ case FL_ENTER : /* FALLTHROUGH */
case FL_LEAVE :
return 1;
default:
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx
index 329a8723b..a5ca1739b 100644
--- a/src/Fl_Group.cxx
+++ b/src/Fl_Group.cxx
@@ -102,7 +102,7 @@ static int send(Fl_Widget* o, int event) {
if (o->type() < FL_WINDOW) return o->handle(event);
switch ( event )
{
- case FL_DND_ENTER:
+ case FL_DND_ENTER: /* FALLTHROUGH */
case FL_DND_DRAG:
// figure out correct type of event:
event = (o->contains(Fl::belowmouse())) ? FL_DND_DRAG : FL_DND_ENTER;
@@ -114,7 +114,7 @@ static int send(Fl_Widget* o, int event) {
Fl::e_x = save_x;
switch ( event )
{
- case FL_ENTER:
+ case FL_ENTER: /* FALLTHROUGH */
case FL_DND_ENTER:
// Successful completion of FL_ENTER means the widget is now the
// belowmouse widget, but only call Fl::belowmouse if the child
diff --git a/src/Fl_Menu_Button.cxx b/src/Fl_Menu_Button.cxx
index 0ae69de51..438383115 100644
--- a/src/Fl_Menu_Button.cxx
+++ b/src/Fl_Menu_Button.cxx
@@ -73,7 +73,7 @@ const Fl_Menu_Item* Fl_Menu_Button::popup() {
int Fl_Menu_Button::handle(int e) {
if (!menu() || !menu()->text) return 0;
switch (e) {
- case FL_ENTER:
+ case FL_ENTER: /* FALLTHROUGH */
case FL_LEAVE:
return (box() && !type()) ? 1 : 0;
case FL_PUSH:
@@ -95,7 +95,7 @@ int Fl_Menu_Button::handle(int e) {
case FL_SHORTCUT:
if (Fl_Widget::test_shortcut()) {popup(); return 1;}
return test_shortcut() != 0;
- case FL_FOCUS:
+ case FL_FOCUS: /* FALLTHROUGH */
case FL_UNFOCUS:
if (box() && Fl::visible_focus()) {
redraw();
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx
index e36a4cbda..7ea3aae98 100644
--- a/src/Fl_Tabs.cxx
+++ b/src/Fl_Tabs.cxx
@@ -151,6 +151,7 @@ int Fl_Tabs::handle(int event) {
} else {
if (Fl::event_y() < y()+h()+H) return Fl_Group::handle(event);
}}
+ /* FALLTHROUGH */
case FL_DRAG:
case FL_RELEASE:
o = which(Fl::event_x(), Fl::event_y());
diff --git a/src/filename_match.cxx b/src/filename_match.cxx
index fae1b0e34..dac16a803 100644
--- a/src/filename_match.cxx
+++ b/src/filename_match.cxx
@@ -114,6 +114,7 @@ int fl_filename_match(const char *s, const char *p) {
case '\\': // quote next character
if (*p) p++;
+ /* FALLTHROUGH */
default:
if (tolower(*s) != tolower(*(p-1))) return 0;
s++;