-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix pedantic warnings #2441
Fix pedantic warnings #2441
Conversation
//#define DEBUG_PRINT(x,...) printf(x,##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(x,...) | ||
//#define DEBUG_PRINT(...) printf(##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(...) |
Check notice
Code scanning / CodeQL
Undisciplined macro Note
//#define DEBUG_PRINT(x,...) printf(x,##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(x,...) | ||
//#define DEBUG_PRINT(...) printf(##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(...) |
Check notice
Code scanning / CodeQL
Undisciplined macro Note
//#define DEBUG_PRINT(x,...) printf(x,##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(x,...) | ||
//#define DEBUG_PRINT(...) printf(##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(...) |
Check notice
Code scanning / CodeQL
Undisciplined macro Note
//#define DEBUG_PRINT(x,...) printf(x,##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(x, ...) | ||
//#define DEBUG_PRINT(...) printf(##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(...) |
Check notice
Code scanning / CodeQL
Undisciplined macro Note
//#define DEBUG_PRINT(x,...) printf(x,##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(x,...) | ||
//#define DEBUG_PRINT(...) printf(##__VA_ARGS__); fflush(stdout) | ||
#define DEBUG_PRINT(...) |
Check notice
Code scanning / CodeQL
Undisciplined macro Note
Should be solved by nasa/fpp#368 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the one question, otherwise looks good!
Change Description
Fixes some of the pedantic warnings in the code base. To be merged/checked once #2436 is merged.
I activated the pedantic flag on the Ref project, I am not sure if it is something that was expected.
I kept it deactivated on the root CMakeLists.txt.
Still open to be pedantic-compliant is the declaration of 0 sized array, which I guess, would have to be fixed from the fpp side.
There are also some warnings on the unit tests, but I guess it will need its own PR.
Main changes:
%d
to%u
for printing unsigned integer