-
Notifications
You must be signed in to change notification settings - Fork 7.7k
fix: silence multiple warnings pointed in issue #11917 #11920
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
base: master
Are you sure you want to change the base?
Conversation
👋 Hello cziter15, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
static volatile TaskHandle_t _udp_task_handle = NULL; | ||
|
||
static void _udp_task(void *pvParameters) { | ||
(void)pvParameters; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
|
||
bool PBKDF2_HMACBuilder::addStream(Stream &stream, const size_t maxLen) { | ||
log_e("PBKDF2_HMACBuilder does not support addStream. Use setPassword() and setSalt() instead."); | ||
(void)stream; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
bool PBKDF2_HMACBuilder::addStream(Stream &stream, const size_t maxLen) { | ||
log_e("PBKDF2_HMACBuilder does not support addStream. Use setPassword() and setSalt() instead."); | ||
(void)stream; | ||
(void)maxLen; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
} | ||
|
||
bool UpdateClass::begin(size_t size, int command, int ledPin, uint8_t ledOn, const char *label) { | ||
(void)label; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
|
||
bool WebServer::authenticate(const char *_username, const char *_password) { | ||
return WebServer::authenticate([_username, _password](HTTPAuthMethod mode, String username, String params[]) -> String * { | ||
(void)mode; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
bool WebServer::authenticate(const char *_username, const char *_password) { | ||
return WebServer::authenticate([_username, _password](HTTPAuthMethod mode, String username, String params[]) -> String * { | ||
(void)mode; | ||
(void)params; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
} | ||
|
||
bool canRaw(const String &requestUri) override { | ||
(void)requestUri; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
} | ||
|
||
bool canRaw(WebServer &server, const String &requestUri) override { | ||
(void)requestUri; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
virtual ~Middleware() {} | ||
|
||
virtual bool run(WebServer &server, Callback next) { | ||
(void)server; |
Check warning
Code scanning / CodeQL
Expression has no effect Warning
Removed deprecated flush() comment and updated code.
@me-no-dev Not sure about that |
Test Results 76 files 76 suites 14m 29s ⏱️ Results for commit 42b0e01. ♻️ This comment has been updated with latest results. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
} | ||
|
||
_chunkedClient.flush(); | ||
_chunkedClient.clear(); |
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.
This is a breaking change. Please revert.
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.
It's what warning suggested. Actually i'm on mobile, so limited ability to go through client classes. Why is it breaking?
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.
makes no sense when beeing on mobile. Look through the PRs made regarding flush <-> clear
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.
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.
It seems that the documentation isn’t accurate.
flush()
is calling clear()
at:
void NetworkUDP::flush() { |
void NetworkClient::flush() { |
but only in WifiClientSecure.cpp
is actually doing nothing:
void flush() {} |
so yes @Jason2866 it's better not touch this, but that depecation is misleading
By completing this PR sufficiently, you help us to review this Pull Request quicker and also help improve the quality of Release Notes
Checklist
This entire section above can be deleted if all items are checked.
Description of Change
Resolve warnings as described in #11917
Related links
Closes #11917