Skip to content

Commit

Permalink
Misc fixes for C++20 / new fmt (AliceO2Group#3863)
Browse files Browse the repository at this point in the history
* Fix for fmt 10.1.1
* Drop obsolete flag
* Fix warning
* Fix missing namespace
  • Loading branch information
ktf authored Nov 15, 2023
1 parent af410a0 commit f064acd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ALICE3/Core/DelphesO2TrackSmearer.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ struct lutEntry_t {
float otof = 0.;
float covm[15] = {0.};
float eigval[5] = {0.};
float eigvec[5][5] = {0.};
float eiginv[5][5] = {0.};
float eigvec[5][5] = {{0.}};
float eiginv[5][5] = {{0.}};
void print()
{
printf(" --- lutEntry: pt = %f, eta = %f (%s)\n", pt, eta, valid ? "valid" : "not valid");
Expand Down
3 changes: 2 additions & 1 deletion DPG/Tasks/AOTTrack/qaMatchEff.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ using namespace o2::framework;
using namespace o2::framework::expressions;
using std::array;
using namespace extConfPar;
//
using o2::constants::math::PI;
using o2::constants::math::TwoPI;
//
struct qaMatchEff {
int lastRunNumber = -1;
Expand Down
2 changes: 1 addition & 1 deletion PWGCF/Core/CorrelationContainer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ TH2* CorrelationContainer::getSumOfRatios(CorrelationContainer* mixed, Correlati
// If step6 is not available we fallback to taking the normalization along all delta phi (WARNING requires a
// flat delta phi distribution)
if (stepForMixed == -1 && step == kCFStepBiasStudy && mixed->mTriggerHist->getTHn(kCFStepReconstructed)->GetEntries() > 0 && !mSkipScaleMixedEvent) {
LOGF(info, "Using mixed-event normalization factors from step %d", kCFStepReconstructed);
LOGF(info, "Using mixed-event normalization factors from step %d", (int)kCFStepReconstructed);
mixed->getHistsZVtxMult(kCFStepReconstructed, ptTriggerMin, ptTriggerMax, &trackMixedAllStep6, &eventMixedAllStep6);
}

Expand Down
1 change: 0 additions & 1 deletion dependencies/O2PhysicsCompileFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING "Debug mode buil
set(CMAKE_Fortran_FLAGS_DEBUG "-g -O0" CACHE STRING "Debug mode build flags" FORCE)

if(APPLE)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-undefined,error") # avoid undefined in our libs
elseif(UNIX)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") # avoid undefined in our libs
endif()
Expand Down

0 comments on commit f064acd

Please sign in to comment.