Skip to content

Fix compiler warning - #303

Merged
mathieucarbou merged 1 commit into
mainfrom
warning
Oct 3, 2025
Merged

mathieucarbou merged 1 commit into
mainfrom
warning

Conversation

@mathieucarbou

Copy link
Copy Markdown
Member
src/WebHandlers.cpp: In member function 'virtual void AsyncStaticWebHandler::handleRequest(AsyncWebServerRequest*)':
src/WebHandlers.cpp:237:38: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  237 |     snprintf(etag, sizeof(etag), "%08x", etagValue);
      |                                   ~~~^   ~~~~~~~~~
      |                                      |   |
      |                                      |   uint32_t {aka long unsigned int}
      |                                      unsigned int
      |                                   %08lx

```
src/WebHandlers.cpp: In member function 'virtual void AsyncStaticWebHandler::handleRequest(AsyncWebServerRequest*)':
src/WebHandlers.cpp:237:38: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  237 |     snprintf(etag, sizeof(etag), "%08x", etagValue);
      |                                   ~~~^   ~~~~~~~~~
      |                                      |   |
      |                                      |   uint32_t {aka long unsigned int}
      |                                      unsigned int
      |                                   %08lx
```
@mathieucarbou
mathieucarbou merged commit 0951505 into main Oct 3, 2025
35 checks passed
@mathieucarbou
mathieucarbou deleted the warning branch October 3, 2025 12:20
@jrr jrr mentioned this pull request Dec 6, 2025
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants