LArSoft

Logo

Software for Liquid Argon time projection chambers

View My GitHub Profile

Updating code for e26 and c14

Starting with art 3.12, code can be compiled with e26 (GCC 12.1.0) and c14 (Clang 14.0.6). As expected, the newer compilers find more infelicities in the code, some of which indicate a need for code review.

Issues found by e26

-        for (auto const evt_weight : evtwgt_map){
+        for (auto const& evt_weight : evtwgt_map){

Issues found by c14

  /home/garren/scratch/larsoft/uboone/dev5/srcs/ubana/ubana/searchingfornues/Selection/AnalysisTools/ContainmentAnalysis_tool.cc:304:11: error: implicit conversion from 'std::numeric_limits<int>::type' (aka 'int') to 'float' changes value from 2147483647 to 2147483648 [-Werror,-Wimplicit-const-int-float-conversion]
  _dvtx = std::numeric_limits<int>::max();
        ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

castxml

- COMMAND gen_srproxy --flat -i sbnanaobj/StandardRecord/StandardRecord.h -o FlatRecord --target caf::StandardRecord --include-path $ENV{SBNANAOBJ_DIR}:$ENV{ROOT_INC} -op sbnanaobj/StandardRecord/Flat/ --prolog $ENV{SBNANAOBJ_DIR}/sbnanaobj/StandardRecord/Flat/Prolog.h --extra-cflags ' -D_Float16=short'
+ COMMAND gen_srproxy --flat -i sbnanaobj/StandardRecord/StandardRecord.h -o FlatRecord --target caf::StandardRecord --include-path $ENV{SBNANAOBJ_DIR}:$ENV{ROOT_INC} -op sbnanaobj/StandardRecord/Flat/ --prolog $ENV{SBNANAOBJ_DIR}/sbnanaobj/StandardRecord/Flat/Prolog.h --extra-cflags ' -D_Float16=short -fsized-deallocation'