#include <X11/StringDefs.h>
#include <X11/bitmaps/gray>
+#include <assert.h>
+
#include "xlwscrollbarP.h"
#include "xlwscrollbar.h"
}
called_anything = True; /* Special Case */
break;
+ default:
+ /* Since called_anything will definitely be False
+ here, the fall through if will do the proper
+ thing.. So, nothing to do here
+ */
+ ;
}
if (!called_anything) {
if (w->sb.armed != ARM_NONE) {
int last_value = w->sb.value;
- int reason;
+ int reason = XmCR_NONE;
switch (w->sb.armed) {
case ARM_PAGEUP:
increment_value(w, w->sb.increment);
reason = XmCR_INCREMENT;
break;
+ case ARM_NONE:
+ /* This one should never happen... */
+ assert(w->sb.armed != ARM_NONE);
+ break;
+ case ARM_SLIDER:
+ /* Should something be done for slider? */
default:
reason = XmCR_NONE;
}
break;
}
abort();
+ case BUTTON_NONE:
default:
; /* Do nothing */
}
redraw_down_arrow(w, True, False);
break;
case BUTTON_NONE:
- ; /* Do nothing */
+ default:
+ ; /* Do nothing */
}
verify_values(w);