Added -Wextra to compile flags
-Wextra does several extra checks during the compiling. Unfortunately one of the extra check is for unused parameters. Several functions have unused parameters (mostly the WrenVM* vm).
This commit is contained in:
+2
-2
@@ -25,8 +25,8 @@ CLI_SOURCES := $(wildcard src/cli/*.c)
|
||||
VM_SOURCES := $(wildcard src/vm/*.c)
|
||||
BUILD_DIR := build
|
||||
|
||||
CFLAGS := -Wall -Werror -Wsign-compare -Wtype-limits -Wuninitialized
|
||||
# TODO: Add -Wextra.
|
||||
CFLAGS := -Wall -Wextra -Werror -Wsign-compare -Wtype-limits -Wuninitialized -Wno-unused-parameter
|
||||
# TODO: dump '-Wno-unused-parameter'
|
||||
|
||||
# Mode configuration.
|
||||
ifeq ($(MODE),debug)
|
||||
|
||||
Reference in New Issue
Block a user