Ticket #4804: libs_libmyth-suppress-compiler-warnings-ticket-4804.patch

File libs_libmyth-suppress-compiler-warnings-ticket-4804.patch, 1.2 KB (added by Erik Hovland <erik@…>, 12 years ago)

Suppresses compiler warnings introduced in the original patch

  • mythtv/libs/libmyth/audiooutput.h

    The original patch for this ticket produces some compiler warnings in audiooutput.h.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     mythtv/libs/libmyth/audiooutput.h |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/mythtv/libs/libmyth/audiooutput.h b/mythtv/libs/libmyth/audiooutput.h
    index 12c84e3..6ec1ead 100644
    a b class MPUBLIC AudioOutput : public VolumeBase, public OutputListeners 
    3333
    3434    // For software pre-amplification.
    3535    virtual bool IsPreAmpEnabled() const { return false; }
    36     virtual void SetPreAmp(bool enabled) { return; }
     36    virtual void SetPreAmp(bool enabled) { (void) enabled; }
    3737    virtual void EnablePreAmp() { return; }
    3838    virtual void DisablePreAmp() { return; }
    39     virtual void SetPreAmpGain(float gain) { return; }
    40     virtual void SetPreAmpFactor(float factor) { return; }
     39    virtual void SetPreAmpGain(float gain) { (void)gain; }
     40    virtual void SetPreAmpFactor(float factor) { (void)factor; }
    4141    virtual float GetPreAmpGain() const { return 0.0; }
    4242    virtual float GetPreAmpFactor() const { return 1.0; }
    4343    virtual void ResetClippingMonitor() { return; }