limelight icon indicating copy to clipboard operation
limelight copied to clipboard

'token_to_string' [-Wunused-function] on M1

Open veitch123 opened this issue 4 years ago • 3 comments

I followed the instructions on the other thread regarding removing the offending code from /src/misc/log.h but that code doesn't appear to be there.

My error is rm -rf ./bin mkdir -p ./bin clang src/manifest.m -std=c99 -Wall -DNDEBUG -O2 -fvisibility=hidden -mmacosx-version-min=10.13 -F/System/Library/PrivateFrameworks -framework Carbon -framework Cocoa -framework CoreServices -framework SkyLight -o bin/limelight In file included from src/manifest.m:48: src/message.c:43:14: warning: unused function 'token_to_string' [-Wunused-function] static char *token_to_string(struct token token) ^

Am I doing something wrong?

veitch123 avatar Jan 14 '22 17:01 veitch123

I was able to work around this by removing -Wall from the makefile. It builds and runs, anyway.

It also segv's pretty regularly. Enough to where it's mostly not usable for me.

mcampbell avatar Jan 19 '22 17:01 mcampbell

This is just a warning and does not prevent the software from compiling successfully. Just ignore it.

asmvik avatar Jan 21 '22 16:01 asmvik

You're right, I'm an idiot. Sorry about that.

mcampbell avatar Jan 21 '22 16:01 mcampbell