Changeset 1609


Ignore:
Timestamp:
Feb 5, 2023, 11:30:10 PM (8 months ago)
Author:
Peter Johansson
Message:

avoid warnings with GCC 11

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/.release_year

    r1608 r1609  
    1 2020
     12023
  • trunk/lib/Commitment.h

    r1515 r1609  
    8888  struct GreaterRevision
    8989  {
    90     inline bool operator()(const Commitment& lhs, const Commitment& rhs)
     90    inline bool operator()(const Commitment& lhs, const Commitment& rhs) const
    9191    { return lhs.revision()>rhs.revision(); }
    9292  };
     
    9494  struct LessRevision
    9595  {
    96     inline bool operator()(const Commitment& lhs, const Commitment& rhs)
     96    inline bool operator()(const Commitment& lhs, const Commitment& rhs) const
    9797    { return lhs.revision()<rhs.revision(); }
    9898  };
  • trunk/lib/Configuration.cc

    r1515 r1609  
    375375            image_format(rhs);
    376376          }
    377           catch (std::runtime_error e) {
     377          catch (std::runtime_error& e) {
    378378            throw Config_error(line,
    379379                               "unknown format: " + rhs + "\n" + e.what());
     
    384384            image_anchor_format(rhs);
    385385          }
    386           catch (std::runtime_error e) {
     386          catch (std::runtime_error& e) {
    387387            throw Config_error(line,
    388388                               "unknown format: " + rhs + "\n" + e.what());
  • trunk/lib/CopyrightStats.cc

    r1551 r1609  
    126126      return rev;
    127127    }
    128     catch (yat::utility::runtime_error e) {
     128    catch (yat::utility::runtime_error& e) {
    129129      return 0;
    130130    }
Note: See TracChangeset for help on using the changeset viewer.