diff --git a/CMakeLists.txt b/CMakeLists.txt index f7fe1540a3..f20bf3939b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ set(CMAKE_CXX_FLAGS -Wall -Weffc++ -Werror - #-Wfatal-errors + -Wfatal-errors ) if (COVERALLS) diff --git a/scripts/format.sh b/scripts/format.sh index 37f746ac1f..5e5863f141 100755 --- a/scripts/format.sh +++ b/scripts/format.sh @@ -7,6 +7,9 @@ format_wildcards=""" ./test/*.*pp """ +echo astyle: $astyle +echo format: $format + if [[ $format ]] then echo formatting diff --git a/test/attitude.cpp b/test/attitude.cpp index 3dc96d329f..173f1de2c8 100644 --- a/test/attitude.cpp +++ b/test/attitude.cpp @@ -21,7 +21,8 @@ int main() float dcm_data[] = { 0.93629336, -0.27509585, 0.21835066, 0.28962948, 0.95642509, -0.03695701, - -0.19866933, 0.0978434 , 0.97517033}; + -0.19866933, 0.0978434 , 0.97517033 + }; Dcmf dcm_check(dcm_data); // euler ctor @@ -39,8 +40,8 @@ int main() q.normalize(); q.T().print(); assert((q - Quatf( - 0.18257419, 0.36514837, 0.54772256, 0.73029674) - ).norm() < eps); + 0.18257419, 0.36514837, 0.54772256, 0.73029674) + ).norm() < eps); // euler to quaternion q = Quatf(euler_check);