From 80a22e97e8f61c4fb3cfd13dd4ee81c3a46c5884 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 3 Feb 2022 19:48:51 +0100 Subject: Fl_Timeout: Remove compiler warning [-Wclass-memaccess] Also: fix doxygen warning --- src/Fl_Timeout.cxx | 2 +- src/Fl_Timeout.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_Timeout.cxx b/src/Fl_Timeout.cxx index fed9fbad6..197719737 100644 --- a/src/Fl_Timeout.cxx +++ b/src/Fl_Timeout.cxx @@ -319,7 +319,7 @@ Fl_Timeout *Fl_Timeout::get(double time, Fl_Timeout_Handler cb, void *data) { #endif } - memset(t, 0, sizeof(*t)); + t->next = 0; t->delay(time); t->callback = cb; t->data = data; diff --git a/src/Fl_Timeout.h b/src/Fl_Timeout.h index de4110609..610f00067 100644 --- a/src/Fl_Timeout.h +++ b/src/Fl_Timeout.h @@ -146,8 +146,6 @@ protected: used like a stack (last in, first out). \see Fl_Timeout::push() Member function (method) - \see Fl_Timeout *Fl_Timeout::pop() Static function - \see Fl_Timeout *Fl_Timeout::current() TStatic function */ static Fl_Timeout *current_timeout; // list of "current" timeouts -- cgit v1.2.3