]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Silence GCC -Wunused-function warnings in the scanner.
authorNick Bowler <nbowler@draconx.ca>
Mon, 15 Jan 2024 04:28:01 +0000 (23:28 -0500)
committerNick Bowler <nbowler@draconx.ca>
Mon, 15 Jan 2024 04:50:31 +0000 (23:50 -0500)
commit85f21977c90a06318541b0ac547c6e273afabce9
tree86d49bb60266b6e6884488a549c7c4eebec42e2d
parentd325d75dac5339f0c25b741122cde5698c62f04e
libcdecl: Silence GCC -Wunused-function warnings in the scanner.

Use the GCC unused attribute to avoid warnings in the scanner, and use
the flex yyIN_HEADER macro so the static declarations don't leak out to
other files (where GCC will give warnings about missing definitions).

While we do this, fix a typo and remove an unneeded declaration which
were both caught by this warning.
src/scan.l