Skip to content

Commit

Permalink
Fix warnings seen with gcc11.
Browse files Browse the repository at this point in the history
 - Warnings about deprecated implicit declaration of copy ctor/assignment.
 - Spurious trailing semicolons on function definitions.
  • Loading branch information
scott snyder committed Sep 5, 2021
1 parent d0fe5f7 commit 9aebbdd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions graf2d/graf/inc/TPaveLabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ class TPaveLabel : public TPave, public TAttText {
TPaveLabel();
TPaveLabel(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, const char *label, Option_t *option="br");
TPaveLabel(const TPaveLabel &pavelabel);
TPaveLabel& operator=(const TPaveLabel &pavelabel)
{
if (this != &pavelabel) {
((TPaveLabel&)pavelabel).Copy(*this);
}
return *this;
}
virtual ~TPaveLabel();

void Copy(TObject &pavelabel) const;
Expand Down
1 change: 1 addition & 0 deletions math/physics/inc/TVector2.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class TVector2 : public TObject {
typedef Double_t Scalar; // to be able to use it with the ROOT::Math::VectorUtil functions

TVector2 ();
TVector2 (const TVector2&) = default;
TVector2 (Double_t *s);
TVector2 (Double_t x0, Double_t y0);
virtual ~TVector2();
Expand Down
2 changes: 1 addition & 1 deletion roofit/roofitcore/inc/RooArgList.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class RooArgList : public RooAbsCollection {
// Expand parameter pack in C++ 11 way:
int dummy[] = { 0, (processArg(argsOrName), 0) ... };
(void)dummy;
};
}

/// Construct from iterators.
/// \tparam Iterator_t An iterator pointing to RooFit objects or references thereof.
Expand Down
2 changes: 1 addition & 1 deletion roofit/roofitcore/inc/RooArgSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class RooArgSet : public RooAbsCollection {
// Expand parameter pack in C++ 11 way:
int dummy[] = { 0, (processArg(moreArgsOrName), 0) ... };
(void)dummy;
};
}

/// Construct from iterators.
/// \tparam Iterator_t An iterator pointing to RooFit objects or references thereof.
Expand Down

0 comments on commit 9aebbdd

Please sign in to comment.