Mirror von
https://github.com/tkuschel/bees.git
synchronisiert 2026-05-08 04:59:37 +02:00
6325f9ed72
Sprinkle in some asserts to make sure compilers aren't getting creative. This may introduce a new compiler dependency, as I suspect older versions of GCC don't support this syntax. It definitely needs a new compiler flag to suppress a warning when some fields are not explicitly initialized. If we've omitted a field, it's because it's a field we don't know (or care) about, and we want that thing initialized to zero. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
14 Zeilen
361 B
Plaintext
14 Zeilen
361 B
Plaintext
# Default:
|
|
CCFLAGS = -Wall -Wextra -Werror -O3
|
|
|
|
# Optimized:
|
|
# CCFLAGS = -Wall -Wextra -Werror -O3 -march=native
|
|
|
|
# Debug:
|
|
# CCFLAGS = -Wall -Wextra -Werror -O0 -ggdb
|
|
|
|
CCFLAGS += -I../include -D_FILE_OFFSET_BITS=64
|
|
|
|
BEES_CFLAGS = $(CCFLAGS) -std=c99 $(CFLAGS)
|
|
BEES_CXXFLAGS = $(CCFLAGS) -std=c++11 -Wold-style-cast -Wno-missing-field-initializers $(CXXFLAGS)
|