summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-02-03 19:48:51 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-02-03 19:56:47 +0100
commit80a22e97e8f61c4fb3cfd13dd4ee81c3a46c5884 (patch)
tree69c4ee106afd38be3bb907949f2c1041213dab94 /src
parent4eaa6dfd0d589757c37cc2de14389f6a15b0219b (diff)
Fl_Timeout: Remove compiler warning [-Wclass-memaccess]
Also: fix doxygen warning
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Timeout.cxx2
-rw-r--r--src/Fl_Timeout.h2
2 files changed, 1 insertions, 3 deletions
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