You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You didn't write how you caused that error, but I guess that it came just from running make in a clean checkout.
My second guess is that -Wcovered-switch-default comes from llvm-config --cflags, which the makefile runs to determine what flags are required to build a program which uses libclang. If that's the case, it also means that you need to build using Clang as the compiler rather than GCC, because GCC does not understand -Wcovered-switch-default.
You should be able to do this by running make CC=clang rather than just make.
cc -pipe -std=c99 -I/usr/local/include -pipe -fPIC -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -g -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/completion_serv.o ./src/completion_serv.c
cc: error: unrecognized command line option ‘-Wcovered-switch-default’
The text was updated successfully, but these errors were encountered: