Ticket #7803: program_options_errors_warning.patch

File program_options_errors_warning.patch, 775 bytes (added by Andrew Hundt <ATHundt@…>, 10 years ago)

patch to fix warning

  • boost/program_options/errors.hpp

    
    # HG changeset patch
    # User Andrew Hundt <ahundt@rec.ri.cmu.edu>
    # Date 2012-12-17 20:14:40 -0500
    # Node ID 6a0ff2dcf61a4cbadac5192fadca7eb33e30a2fa
    # Parent  a1c3bfd2fb8101eaa0f16502c2aed4fb78de77ff
    fixed boost/program_options/errors.hpp:253: warning: unused parameter ‘option_name’
    
    diff --git a/boost/program_options/errors.hpp b/boost/program_options/errors.hpp
    a b  
    250250        }
    251251
    252252        /** Does NOT set option name, because no option name makes sense */
    253         virtual void set_option_name(const std::string& option_name){}
     253        virtual void set_option_name(const std::string& /*option_name*/){}
    254254
    255255        ~error_with_no_option_name() throw() {}
    256256    };