Skip to content
Snippets Groups Projects
Commit 0d140491 authored by scott snyder's avatar scott snyder
Browse files

xAODRootAccess: Fix cppyy nodiscard warnings.

cppyy will generate wrappers both for functions returning a value
and the value being discarded.  If we have [[nodiscard]] on,
then we'll get warnings when cling compiles these wrappers.
Since these wrappers are automatically generated by cppyy,
we can't really avoid these other than by disabling them
for the cling case.
parent 6c725079
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!37130xAODRootAccess: Fix cppyy nodiscard warnings.
// Dear emacs, this is -*- c++ -*-
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
// $Id: TReturnCode.h 598368 2014-05-22 10:23:54Z krasznaa $
......@@ -27,7 +27,17 @@ namespace xAOD {
/// $Revision: 598368 $
/// $Date: 2014-05-22 12:23:54 +0200 (Thu, 22 May 2014) $
///
class [[nodiscard]] TReturnCode {
class
#ifndef __CLING__
// cppyy will generate wrappers both for functions returning a value
// and the value being discarded. If we have [[nodiscard]] on,
// then we'll get warnings when cling compiles these wrappers.
// Since these wrappers are automatically generated by cppyy,
// we can't really avoid these other than by disabling them
// for the cling case.
[[nodiscard]]
#endif
TReturnCode {
public:
/// Enumeration listing the possible return codes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment