Comments (5)
Hey @bertrik, cool to see you here and nice catch! Will include in #1017. Fortunately, we don't often see that channel mask happening, but even worse would be the result because we'd hardly ever catch it...
As soon as #1017 compiles, please feel free to run your checker on it as well and notify me of potential problems.
from radiolib.
Strange that the CodeQL action (https://github.com/jgromes/RadioLib/actions/runs/8311068463) did not find such an obvious problem. IT also seems that I ahve missed the deprecation notice.
I will add cppcheck as a separate CI job.
from radiolib.
The action is in, here's the output when scanning all RadioLib sources: https://github.com/jgromes/RadioLib/actions/runs/8313947188/job/22750505703?pr=1019
There's one error which seems like a bug in cppcheck itself (https://trac.cppcheck.net/ticket/11023), and most of the warnings are due to incorrect printf
format specifiers.
@bertrik strangely enough, it does not find the loop you did - did you do any extra configuration? Also, which cppcheck verrsion are you using?
from radiolib.
I ran:
cppcheck *.cpp --enable=all
in the LoRaWAN directory.
My cppcheck version is Cppcheck 2.13.0
I know from experience that code scanning tools can be a mixed blessing.
In this case, the problem only becomes visible at the more elaborate check level, giving warnings about harmless things too.
Before you know, you're fixing non-issues / investigating code-scanning tool bugs / putting a lot of effort in suppressing false positives / accidentally introducing actual bugs trying to silence a warning, etc.
from radiolib.
I know from experience that code scanning tools can be a mixed blessing.
I'm painfully aware of that. That's why I didn't add any logic to the code scan CI that would trigger a job failure when something is detected.
I will leave this issue open until the PR fixing this is merged.
from radiolib.
Related Issues (20)
- NodeMCU (ESP8266) with SX1262 is not working HOT 2
- Heltec Wireless Stick Lite V3 not receiving join accept HOT 4
- e22-400m33s recieve interrupt HOT 3
- Can you update an example of the Arduino platform LLCC68? Thank you! HOT 2
- LoRaWan - CubeCell cannot join most time (error -6) HOT 33
- EEPROM.h: No such file or directory HOT 6
- Other pager protocols HOT 3
- Add method to set io-home mode HOT 10
- LoRaWAN: band at compile time, bands in general. HOT 12
- ESP8266 store Session in EEPROM not supported (Issue) HOT 5
- LoRaWAN - Frame Count Reset HOT 2
- LoRaWan - Raspberry Pi 3B error -6 on method LoRaWANNode::sendReceive() HOT 18
- CubeCell + POCSAG issues. HOT 1
- RP2040-LoRa Development kit HOT 6
- SPIcheckStream in Module.cpp is ineffective (does nothing) HOT 1
- LoRaWAN ESP32 (Heltec WSL V3) reboot with stack error HOT 14
- TTGO LoRa32 (T3S3 v1.2) Error -16 HOT 10
- Sending more than one message in POCSAG HOT 1
- 'virtual float PhysicalLayer::getRSSI()' was hidden ESP-IDF HOT 10
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 radiolib.