FLTK - Fast Light Tool Kit - https://github.com/fltk/fltk - cross platform GUI development
[ 15%] Building CXX object src/CMakeFiles/fltk.dir/Fl_Text_Display.cxx.o
.../fltk/src/Fl_Text_Display.cxx: In constructor ‘Fl_Text_Display::Fl_Text_Display(int, int, int, int, const char*)’:
.../fltk/src/Fl_Text_Display.cxx:122:57: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ writing between 4 and 8589934584 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
122 | for (int i=1; i<mNVisibleLines; i++) mLineStarts[i] = -1;
| ~~~~~~~~~~~~~~~^~~~
.../fltk/src/Fl_Text_Display.cxx:120:39: note: at offset 4 into destination object of size 4 allocated by ‘operator new []’
120 | mLineStarts = new int[mNVisibleLines];
| ^
This warning is IMHO obsolete because the code in question should not
be executed at all (mNVisibleLines == 1). However, the compiler seems
to substitute this with '__builtin_memset(...)' and analyzes "correctly"
that memory at offset 4 would be overwritten but not that the written
size would be 0.
The "fix" uses a compiler macro and #if to clarify that this code must
not be executed and should not be compiled (see comment why this code
exists).
|
||
|---|---|---|
| .github | ||
| cairo | ||
| CMake | ||
| documentation | ||
| examples | ||
| FL | ||
| fluid | ||
| GL | ||
| jpeg | ||
| lib | ||
| libdecor | ||
| misc | ||
| nanosvg | ||
| png | ||
| public | ||
| src | ||
| test | ||
| util | ||
| zlib | ||
| .clang-format | ||
| .gitattributes | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| ANNOUNCEMENT | ||
| autogen.sh | ||
| CHANGES_1.0.txt | ||
| CHANGES_1.1.txt | ||
| CHANGES_1.3.txt | ||
| CHANGES.txt | ||
| CMakeLists.txt | ||
| config.guess | ||
| config.sub | ||
| configh.cmake.in | ||
| configh.in | ||
| configure.ac | ||
| COPYING | ||
| CREDITS.txt | ||
| DartConfig.cmake | ||
| fl_config.cmake.in | ||
| fl_config.in | ||
| fltk_version.dat | ||
| fltk-config.in | ||
| fltk.list.in | ||
| fltk.spec.in | ||
| fltk.xpm | ||
| forms.h | ||
| install-sh | ||
| mac_endianness.h | ||
| Makefile | ||
| makeinclude.in | ||
| makesrcdist | ||
| README.abi-version.txt | ||
| README.bundled-libs.txt | ||
| README.Cairo.txt | ||
| README.CMake.txt | ||
| README.experimental.txt | ||
| README.IDE.txt | ||
| README.macOS.md | ||
| README.md | ||
| README.txt | ||
| README.Unix.txt | ||
| README.Wayland.txt | ||
| README.Windows.txt | ||
README - Fast Light Tool Kit (FLTK) Version 1.4.0
WHAT IS FLTK?
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a
cross-platform C++ GUI toolkit for UNIX®/Linux® (X11 or
Wayland), Microsoft® Windows®, and macOS®.
FLTK provides modern GUI functionality without the bloat and
supports 3D graphics via OpenGL® and its built-in GLUT
emulation. It was originally developed by Mr. Bill Spitzak
and is currently maintained by a small group of developers
across the world with a central repository on GitHub.
For more information see README.txt:
https://github.com/fltk/fltk/blob/master/README.txt