Comments (7)
Thanks for the offer.
I don't think though that we need to "support" any specific warning flags in our build environment. Users can always add their own flags when building FLTK with both build systems supported by us (autoconf/make and CMake), for instance by setting environment variables CXXFLAGS, LDFLAGS, etc.
Am I missing anything, are there other reasons I didn't see?
from fltk.
Nope, thanks for the reply! This answers my question.
from fltk.
Just want to check on the goal of the request, to make sure we aren't missing out on something.
Was the goal to just allow end users to influence build flags, and this is served by specifying e.g. CXXFLAGS?
Or is it to add specific new compiler warning flags that we should be using to ensure future FLTK development doesn't trip on code problems these new flags would prevent, but are flags that -Wall does not currently support? And if so, is the OP offering to provide some kind of mechanism that only enables such flags if the compile time g++ compiler environment supports them, and are not already enabled by -Wall?
If the latter, that might be interesting, though I would imagine our existing use of -Wall would cover this.. not sure.
Certainly I can say that when we used to compile on SGIs, the SGI compiler would catch many problems that gnu did not, and I imagine now that we also support clang, it similarly catches other problems gnu doesn't, and having such features /is/ useful.
Anyway, just checking if we're not missing something that might be good to add..
from fltk.
Or is it to add specific new compiler warning flags that we should be using to ensure future FLTK development doesn't trip on code problems these new flags would prevent, but are flags that -Wall does not currently support?
This was my original concern, but also wanted to give myself a "good first issue" so I could start learning the fltk
code base. I figured that enabling a flag like -Wold-style-cast
, or other small (perhaps benign) flags like this, could create a small task to get familiar with the code base.
from fltk.
If you'd like to familiarize yourself with the code base, feel free to try fixing bugs in the bug list: https://www.fltk.org/str.php
Some are pretty challenging, but some might be easy.
from fltk.
I figured that enabling a flag like -Wold-style-cast, or other small (perhaps benign) flags like this, could create a small task to get familiar with the code base.
@psyomn - Regarding the flag mentioned above: please note that we're using old style casts intentionally. Our code base is targeted at pretty old compilers, hence we don't use more modern C++ features.
Before you familiarize yourself with the FLTK code base you might want to take a look at our Configuration Management Plan, particularly at the chapter General Coding style.
from fltk.
Thanks!
from fltk.
Related Issues (20)
- memory leak in Fl_X11_Screen_Driver.cxx HOT 4
- FLTK on NetBSD very slow on X11 with Unicode locale HOT 5
- Support for HP-UX HOT 20
- Memory leak in Fl_Xlib_Graphics_Driver_font_xft.cxx HOT 6
- Support for old compilers (gcc 2.x) HOT 7
- Build test programs only on request HOT 3
- 1.5 tooltips and menu help callbacks. HOT 5
- Support for AIX HOT 12
- Fix roundf() and nsvg__roundf() usage in nanosvg
- Support for NetBSD HOT 13
- Fluid Replicable Crash When Using External Editor Vim in Konsole HOT 10
- Please clean up some annoying build warnings emanating from FLTK 1.4 HOT 6
- FLTK 1.3.9 gl_draw() problems on M1 Macs HOT 17
- CMake's USE_SYSTEM libs does not work on Windows' MSVC HOT 4
- Fl_Terminal control character handling HOT 9
- Fl_Gl_Window glViewport() clips drawing on Windows/Mingw64 HOT 6
- Build using a GLU from a non-standard location HOT 5
- Naseem HOT 2
- FLUID: compilation warnings HOT 1
- Wayland use of alpha in glClearColor/glClear() -- bug or misfeature? HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fltk.