From: Steve Kondik Date: Sat, 8 Jul 2017 08:45:10 +0000 (-0700) Subject: rfb: Fix hidden function overload warnings X-Git-Tag: v1.8.90~112^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3f744f77f85b96de92fed53a60dc96d7d3f22eb0;p=tigervnc.git rfb: Fix hidden function overload warnings Fix the following warnings emitted by Clang: /home/shade/dev/tigervnc/common/rfb/Configuration.h:164:18: note: hidden overloaded virtual function 'rfb::VoidParameter::setParam' declared here: different number of parameters (0 vs 1) virtual bool setParam(); ^ /home/shade/dev/tigervnc/common/rfb/Configuration.h:256:18: error: 'rfb::BinaryParameter::setParam' hides overloaded virtual function [-Werror,-Woverloaded-virtual] virtual void setParam(const void* v, int l); ^ /home/shade/dev/tigervnc/common/rfb/Configuration.h:164:18: note: hidden overloaded virtual function 'rfb::VoidParameter::setParam' declared here: different number of parameters (0 vs 2) virtual bool setParam(); --- diff --git a/common/rfb/Configuration.h b/common/rfb/Configuration.h index fbf161db..d319915a 100644 --- a/common/rfb/Configuration.h +++ b/common/rfb/Configuration.h @@ -215,6 +215,7 @@ namespace rfb { IntParameter(const char* name_, const char* desc_, int v, int minValue=INT_MIN, int maxValue=INT_MAX, ConfigurationObject co=ConfGlobal); + using VoidParameter::setParam; virtual bool setParam(const char* value); virtual bool setParam(int v); virtual char* getDefaultStr() const; @@ -251,6 +252,7 @@ namespace rfb { public: BinaryParameter(const char* name_, const char* desc_, const void* v, int l, ConfigurationObject co=ConfGlobal); + using VoidParameter::setParam; virtual ~BinaryParameter(); virtual bool setParam(const char* value); virtual void setParam(const void* v, int l);