mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
755 stars 138 forks source link

"shadowed" variables warning #234

Closed ronaaron closed 5 months ago

ronaaron commented 5 months ago

I know, it's not a critical issue, but I've got warnings cranked up high and I get:

src/md4c.c:4435:21: warning: declaration shadows a local variable [-Wshadow]
                OFF tmp;
                    ^
src/md4c.c:4224:13: note: previous declaration is here
        OFF tmp = (line->end < mark->beg ? line->end : mark->beg);
            ^
src/md4c.c:4455:21: warning: declaration shadows a local variable [-Wshadow]
                OFF tmp = off;
                    ^
src/md4c.c:4224:13: note: previous declaration is here
        OFF tmp = (line->end < mark->beg ? line->end : mark->beg);
mity commented 5 months ago

Thanks for reporting it, should be fixed now in master.

ronaaron commented 5 months ago

It is indeed fixed.