more updates
This commit is contained in:
parent
9a2876cfb9
commit
03e3a98f78
3 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,6 @@ AlignConsecutiveAssignments:
|
||||||
AcrossEmptyLines: false
|
AcrossEmptyLines: false
|
||||||
AcrossComments: false
|
AcrossComments: false
|
||||||
AlignCompound: false
|
AlignCompound: false
|
||||||
AlignFunctionDeclarations: false
|
|
||||||
AlignFunctionPointers: false
|
AlignFunctionPointers: false
|
||||||
PadOperators: true
|
PadOperators: true
|
||||||
AlignConsecutiveBitFields:
|
AlignConsecutiveBitFields:
|
||||||
|
|
|
||||||
3
makefile
3
makefile
|
|
@ -27,10 +27,12 @@ WARNFLAGS := \
|
||||||
-Wduplicated-cond \
|
-Wduplicated-cond \
|
||||||
-Wduplicated-branches \
|
-Wduplicated-branches \
|
||||||
-Wnull-dereference \
|
-Wnull-dereference \
|
||||||
|
-Wno-conversion \
|
||||||
-Wformat-overflow \
|
-Wformat-overflow \
|
||||||
-Wformat-truncation \
|
-Wformat-truncation \
|
||||||
-Wdouble-promotion \
|
-Wdouble-promotion \
|
||||||
-Wundef
|
-Wundef
|
||||||
|
|
||||||
BASEDEFS := -DLOCAL
|
BASEDEFS := -DLOCAL
|
||||||
INCLUDES := -I$(INCLUDE_DIR)
|
INCLUDES := -I$(INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
@ -48,6 +50,7 @@ DBGFLAGS := \
|
||||||
-ffunction-sections \
|
-ffunction-sections \
|
||||||
-D_GLIBCXX_DEBUG \
|
-D_GLIBCXX_DEBUG \
|
||||||
-D_GLIBCXX_DEBUG_PEDANTIC
|
-D_GLIBCXX_DEBUG_PEDANTIC
|
||||||
|
|
||||||
DBG_LDFLAGS := \
|
DBG_LDFLAGS := \
|
||||||
-fsanitize=address,undefined \
|
-fsanitize=address,undefined \
|
||||||
-fsanitize=float-divide-by-zero \
|
-fsanitize=float-divide-by-zero \
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../include/bmath.hh"
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
assert(bmath::add(3, 4) == 3 + 3);
|
assert(bmath::add(3, 4) == 3 + 3);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue