estdlib icon indicating copy to clipboard operation
estdlib copied to clipboard

GCC 7.3.0 (AVR) bipbuf complaints

Open malachib opened this issue 3 months ago • 0 comments

Observed during unity compile-only -e simavr

Feels like a pathing issue:

lib/estdlib/src/estd/internal/bip/../../ext/willemt/bipbuffer/bipbuffer.h:44:5: warning: type of 'bipbuf_offer' does not match original declaration [-Wlto-type-mismatch]
 int bipbuf_offer(bipbuf_t *me, const unsigned char *data, const int size);
     ^
lib/estdlib/src/estd/ext/willemt/bipbuffer/bipbuffer.c:76:5: note: 'bipbuf_offer' was previously declared here
 int bipbuf_offer(bipbuf_t* me, const unsigned char *data, const int size)
     ^
lib/estdlib/src/estd/ext/willemt/bipbuffer/bipbuffer.c:76:5: note: code may be misoptimized unless -fno-strict-aliasing is used
lib/estdlib/src/estd/internal/bip/../../ext/willemt/bipbuffer/bipbuffer.h:34:6: warning: type of 'bipbuf_init' does not match original declaration [-Wlto-type-mismatch]
 void bipbuf_init(bipbuf_t* me, const unsigned int size);
      ^
lib/estdlib/src/estd/ext/willemt/bipbuffer/bipbuffer.c:42:6: note: 'bipbuf_init' was previously declared here
 void bipbuf_init(bipbuf_t* me, const unsigned int size)
      ^
lib/estdlib/src/estd/ext/willemt/bipbuffer/bipbuffer.c:42:6: note: code may be misoptimized unless -fno-strict-aliasing is used
lib/estdlib/src/estd/internal/bip/../../ext/willemt/bipbuffer/bipbuffer.h:74:5: warning: type of 'bipbuf_unused' does not match original declaration [-Wlto-type-mismatch]
 int bipbuf_unused(const bipbuf_t* me);
     ^
lib/estdlib/src/estd/ext/willemt/bipbuffer/bipbuffer.c:23:5: note: 'bipbuf_unused' was previously declared here
 int bipbuf_unused(const bipbuf_t* me)
     ^
lib/estdlib/src/estd/ext/willemt/bipbuffer/bipbuffer.c:23:5: note: code may be misoptimized unless -fno-strict-aliasing is used
lib/estdlib/src/estd/internal/bip/../../ext/willemt/bipbuffer/bipbuffer.h:51:16: warning: type of 'bipbuf_peek' does not match original declaration [-Wlto-type-mismatch]
 unsigned char *bipbuf_peek(const bipbuf_t* me, const unsigned int len);
                ^
lib/estdlib/src/estd/ext/willemt/bipbuffer/bipbuffer.c:97:16: note: 'bipbuf_peek' was previously declared here
 unsigned char *bipbuf_peek(const bipbuf_t* me, const unsigned int size)
                ^
lib/estdlib/src/estd/ext/willemt/bipbuffer/bipbuffer.c:97:16: note: code may be misoptimized unless -fno-strict-aliasing is used

Note that things still build (these are warnings)

malachib avatar Oct 06 '25 05:10 malachib