summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-03-15 20:42:42 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-03-15 20:42:42 +0100
commit8b094e8af3215bed1c3c3c662e4b93163dac6bbc (patch)
tree4bfe94e43074e774cfe71186a467fabcd328406e /FL
parentb3e1df35848003952369f8cbf05cdd41ae62d839 (diff)
Fix a bunch of compiler warnings, particularly for old compilers
Works now much better with old C99 and C++98 standard compilers. Fixed: C++ comments in C files and headers included by C files. There are still some warnings with C90 though but these would be hard to fix and left as-is for now. test/fractals.cxx: some arrays were too small by 1, or the compiler warned at least (false positive?). Anyway, it's fixed now.
Diffstat (limited to 'FL')
-rw-r--r--FL/fl_attr.h12
-rw-r--r--FL/platform_types.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/FL/fl_attr.h b/FL/fl_attr.h
index 66e59c681..52b350754 100644
--- a/FL/fl_attr.h
+++ b/FL/fl_attr.h
@@ -146,7 +146,7 @@
// -- nothing yet --
-#endif // __clang__
+#endif /* __clang__ */
/*
@@ -162,19 +162,19 @@
#define __fl_attr(x) __attribute__ (x)
#endif
-#if FL_GCC_VERSION > 40500 // gcc 4.5.0
+#if FL_GCC_VERSION > 40500 /* gcc 4.5.0 */
#ifndef FL_DEPRECATED
#define FL_DEPRECATED(msg, func) func __attribute__((deprecated(msg)))
#endif
-#endif // gcc 4.5.0
+#endif /* gcc 4.5.0 */
-#if FL_GCC_VERSION > 30100 // gcc 3.1.0
+#if FL_GCC_VERSION > 30100 /* gcc 3.1.0 */
#ifndef FL_DEPRECATED
#define FL_DEPRECATED(msg, func) func __attribute__((deprecated))
#endif
-#endif // gcc 3.1.0
+#endif /* gcc 3.1.0 */
-#endif // __GNUC__
+#endif /* __GNUC__ */
/*
diff --git a/FL/platform_types.h b/FL/platform_types.h
index 71c412abb..c6c00974b 100644
--- a/FL/platform_types.h
+++ b/FL/platform_types.h
@@ -138,7 +138,7 @@ extern FL_EXPORT int fl_control_modifier();
#endif /* FL_PLATFORM_TYPES_H */
-// This is currently the same for all platforms, but may change in the future
+/* This is currently the same for all platforms but may change in the future */
struct Fl_Timestamp_t {
time_t sec;
int usec;