On Tue, May 07, 2024 at 12:54:07PM -0700, Ashok Raj wrote: > Hi > > I'm new to ccan. I'm trying to use just part of the project (just one > module) in another tool. > > I didn't catch the exact method to replicate a single module.
So I went past this step and able to include it in my project. But I see the following warning [16/247] Compiling C object libccan.a.p/ccan_bitmap_bitmap.c.o In file included from ../ccan/bitmap/bitmap.c:5: ../ccan/bitmap/bitmap.h: In function bitmap_set_bit: ../ccan/bitmap/bitmap.h:61:43: warning: declaration of bitmap shadows a global declaration [-Wshadow] 61 | static inline void bitmap_set_bit(bitmap *bitmap, unsigned long n) | ~~~~~~~~^~~~~~ ../ccan/bitmap/bitmap.h:26:3: note: shadowed declaration is here 26 | } bitmap; | ^~~~~~ If I were to change the parameter name to _bitmap and in all usages the warning disappears. Weird the definition its pointing to is this typedewf /* * We wrap each word in a structure for type checking. */ typedef struct _bitmap { bitmap_word w; } bitmap; _______________________________________________ ccan mailing list ccan@lists.ozlabs.org https://lists.ozlabs.org/listinfo/ccan