compiler warning on cc65/scanner.c
icepic opened this issue · comments
Janne Johansson commented
As reported on the maillist, this occurs on recent MacOS with clang 15, but also on OpenBSD with clang 16.0.6:
BUILD_ID: Git 5c3ff71
cc65/scanner.c
cc65/scanner.c:1270:27: warning: cast to smaller integer type 'token_t' (aka 'enum token_t') from 'void *' [-Wvoid-pointer-to-enum-cast]
token_t LastTok = (token_t)CollLast (C);
^~~~~~~~~~~~~~~~~~~~~
1 warning generated.