Fix sign conversion warnings in lfs_util.h#1143
Fix sign conversion warnings in lfs_util.h#1143toastdb wants to merge 3 commits intolittlefs-project:masterfrom
Conversation
Tests passed ✓, Code: 17112 B (+0.0%), Stack: 1448 B (+0.0%), Structs: 812 B (+0.0%)
|
|
Hi @toastdb, thanks for creating a PR. Two concerns:
|
|
Hi @geky,
|
Hmm, I can see where this would be annoying. It's not the cleanest solution, but would wrapping the include with a pragma work? #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-conversion"
#include "lfs.h"
#pragma GCC diagnostic popAnother option is copying lfs_util.h, applying the above patch, and using |
|
I appreciate the tips but we've got them in an ignore list, we were just trying to decrease the list. |
There are a few sign conversion warnings when building with -Wsign-conversion in lfs_util.h that I'd like to resolve.