Comments (2)
I think I will temporarily add the -Wunused-variable
parameter to the compilation flags. I am not sure if __attribute__(unused)
is cross platform. Would this be of your satisfaction?
from fuzzylite.
Maybe it's not the best idea to add -Wunused-variable
because that would hide actual problems with other unused variables. The reason why in Debian we compile with maximum verbosity is to automatically detect any problems with the source so it's important not to hide them.
As for compiler compatibility, how about doing it the following way:
#ifdef __GNUC__
const scalar inf __attribute__ ((unused)) = std::numeric_limits<scalar>::infinity();
#else
const scalar inf = std::numeric_limits<scalar>::infinity();
#endif
from fuzzylite.
Related Issues (20)
- AUR - fuzzylite compilation failed HOT 6
- Run tests on Windows
- Compiling errors under Ubuntu 22.04 HOT 6
- Missunderstanding of the obstacle avoidance example HOT 2
- Outdated Doxygen URL in README.md HOT 2
- Outdated guideline hyperlink in CONTRIBUTING.md HOT 8
- Build issue with glibc 2.34 HOT 4
- support for catch2 v3
- Can not open the source file "fl/Headers.h" HOT 2
- FL_VERSION left in fuzzylite.pc.in HOT 1
- test hardcodes path
- doxygen files in git
- fuzzylite stores build path in output binary HOT 5
- executable file without shebang
- unit test fails on i386 HOT 4
- Energia code for fuzzy speed controller on C language
- Releasing this under vcpkg HOT 3
- Segmentation fault when `fl::*` objects embedded in C++ class HOT 2
- Tests fail to compile with glibc >= 2.34 HOT 9
- TODO: Version 7.0 HOT 1
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 fuzzylite.