diff --git a/.clang-format b/.clang-format index 2a2c48e..dc5ab4c 100644 --- a/.clang-format +++ b/.clang-format @@ -8,7 +8,6 @@ AlignConsecutiveAssignments: AcrossEmptyLines: false AcrossComments: false AlignCompound: false - AlignFunctionDeclarations: false AlignFunctionPointers: false PadOperators: true AlignConsecutiveBitFields: diff --git a/makefile b/makefile index cd0bf88..6dcde75 100644 --- a/makefile +++ b/makefile @@ -27,10 +27,12 @@ WARNFLAGS := \ -Wduplicated-cond \ -Wduplicated-branches \ -Wnull-dereference \ + -Wno-conversion \ -Wformat-overflow \ -Wformat-truncation \ -Wdouble-promotion \ -Wundef + BASEDEFS := -DLOCAL INCLUDES := -I$(INCLUDE_DIR) @@ -48,6 +50,7 @@ DBGFLAGS := \ -ffunction-sections \ -D_GLIBCXX_DEBUG \ -D_GLIBCXX_DEBUG_PEDANTIC + DBG_LDFLAGS := \ -fsanitize=address,undefined \ -fsanitize=float-divide-by-zero \ diff --git a/tests/test_add.cc b/tests/test_add.cc index d9f2129..018d384 100644 --- a/tests/test_add.cc +++ b/tests/test_add.cc @@ -1,7 +1,5 @@ #include -#include "../include/bmath.hh" - int main() { assert(bmath::add(3, 4) == 3 + 3);