cc65 / cc65

cc65 - a freeware C compiler for 6502 based systems

Home Page:https://cc65.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compiler warning on cc65/scanner.c

icepic opened this issue · comments

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.