mirror of
https://github.com/fltk/fltk.git
synced 2026-08-17 16:43:10 +08:00
Silence two compilation warnings (unused variables)
[-Wunused-variable] and [-Wunused-but-set-variable]
This commit is contained in:
@@ -754,7 +754,6 @@ void Widget_Node::write_code1(fluid::io::Code_Writer& f) {
|
||||
}
|
||||
// figure out if local variable will be used (prevent compiler warnings):
|
||||
int wused = !name() && dynamic_cast<Window_Node*>(this);
|
||||
const char* ptr;
|
||||
|
||||
f.write_c(f.indent() + "{ ");
|
||||
write_comment_inline_c(f);
|
||||
|
||||
@@ -668,7 +668,6 @@ void leave_live_mode_cb(Fl_Widget*, void*);
|
||||
void live_mode_cb(Fl_Button* o, void *) {
|
||||
/// \todo live mode should end gracefully when the application quits
|
||||
/// or when the user closes the live widget
|
||||
static Node* live_type = nullptr;
|
||||
static Fl_Widget* live_widget = nullptr;
|
||||
static Fl_Window* live_window = nullptr;
|
||||
|
||||
@@ -687,7 +686,6 @@ void live_mode_cb(Fl_Button* o, void *) {
|
||||
Fl_Group::current(nullptr);
|
||||
live_widget = current_widget->enter_live_mode();
|
||||
if (live_widget) {
|
||||
live_type = current_widget;
|
||||
Fl_Group::current(nullptr);
|
||||
int w = live_widget->w();
|
||||
int h = live_widget->h();
|
||||
@@ -726,7 +724,6 @@ void live_mode_cb(Fl_Button* o, void *) {
|
||||
live_window->hide();
|
||||
Fl::delete_widget(live_window);
|
||||
}
|
||||
live_type = nullptr;
|
||||
live_widget = nullptr;
|
||||
live_window = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user