Skip to content

Commit 4df18c9

Browse files
committed
removing -Werror and option
1 parent 14e12df commit 4df18c9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
all: unit bench
22

33
unit : tests/unit.c include/xorfilter.h include/binaryfusefilter.h
4-
${CC} -std=c99 -g -O2 -fsanitize=address,leak,undefined -o unit tests/unit.c -lm -Iinclude -Wall -Wextra -Wshadow -Wcast-qual -Wconversion -Wsign-conversion -Werror
4+
${CC} -std=c99 -g -O2 -fsanitize=address,leak,undefined -o unit tests/unit.c -lm -Iinclude -Wall -Wextra -Wshadow -Wcast-qual
55

66
ab : tests/a.c tests/b.c
77
${CC} -std=c99 -o c tests/a.c tests/b.c -lm -Iinclude -Wall -Wextra -Wshadow -Wcast-qual -Wconversion -Wsign-conversion

tests/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ target_link_libraries(unit PRIVATE xor_singleheader)
44

55

66
# full warnings with sanitizers for tests. Include debug symbols and
7-
# only -O2 to maintain some debugability. -Werror to
8-
# prevent new warning creeping in Matches Makefile
7+
# only -O2 to maintain some debugability.
98
if (MSVC)
109
# limited support for MSVC, this is not tested
1110
list(APPEND TEST_COMPILE_OPTIONS /W4 /fsanitize=address)
1211
else() # *nix
1312
list(APPEND TEST_COMPILE_OPTIONS -g -O2
14-
-Wall -Wextra -Wshadow -Wcast-qual -Wconversion -Wsign-conversion -Werror)
13+
-Wall -Wextra)
1514

1615
if (NOT MINGW) # sanitizers are not supported under mingw
1716
list(APPEND TEST_COMPILE_OPTIONS -fsanitize=address,undefined)

0 commit comments

Comments
 (0)