File tree Expand file tree Collapse file tree
src/elementwise_univariate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,23 @@ set(CMAKE_BUILD_TYPE Debug)
77# Debug-friendly flags
88add_compile_options (-g -O0 )
99
10+ # Warning flags
11+ add_compile_options (
12+ -Wall # Enable most warnings
13+ -Wextra # Extra warnings
14+ -Wpedantic # Strict ISO C compliance
15+ -Wshadow # Warn about variable shadowing
16+ -Wformat=2 # Extra format string checks
17+ #-Wconversion # Warn about implicit conversions
18+ #-Wsign-conversion # Warn about sign conversions
19+ -Wcast-qual # Warn about cast that removes qualifiers
20+ -Wcast-align # Warn about pointer cast alignment issues
21+ -Wunused # Warn about unused variables/functions
22+ -Wdouble-promotion # Warn about float->double promotion
23+ -Wnull-dereference # Warn about null pointer dereference
24+ #-Wstrict-prototypes # Warn about missing prototypes
25+ )
26+
1027# Include directories
1128include_directories (${PROJECT_SOURCE_DIR} /include )
1229include_directories (${PROJECT_SOURCE_DIR} /tests )
Original file line number Diff line number Diff line change @@ -100,4 +100,5 @@ expr *new_elementwise(expr *child)
100100 node -> eval_jacobian = eval_jacobian_elementwise ;
101101 node -> wsum_hess_init = wsum_hess_init_elementwise ;
102102 node -> eval_wsum_hess = eval_wsum_hess_elementwise ;
103+ return node ;
103104}
You can’t perform that action at this time.
0 commit comments