mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-01 23:05:25 +00:00
Hide warnings about unused parameters.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4849 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -185,6 +185,7 @@ struct ds {
|
|||||||
static int
|
static int
|
||||||
rrdGetSensors_DS
|
rrdGetSensors_DS
|
||||||
(void *_data, const char *rawLabel, const char *label, const FeatureDescriptor *feature) {
|
(void *_data, const char *rawLabel, const char *label, const FeatureDescriptor *feature) {
|
||||||
|
(void) label; /* no warning */
|
||||||
if (!feature || feature->rrd) {
|
if (!feature || feature->rrd) {
|
||||||
struct ds *data = (struct ds *) _data;
|
struct ds *data = (struct ds *) _data;
|
||||||
char *ptr = rrdBuff + data->num * RRD_BUFF;
|
char *ptr = rrdBuff + data->num * RRD_BUFF;
|
||||||
@@ -287,6 +288,7 @@ static int
|
|||||||
rrdCGI_DEF
|
rrdCGI_DEF
|
||||||
(void *_data, const char *rawLabel, const char *label, const FeatureDescriptor *feature) {
|
(void *_data, const char *rawLabel, const char *label, const FeatureDescriptor *feature) {
|
||||||
struct gr *data = (struct gr *) _data;
|
struct gr *data = (struct gr *) _data;
|
||||||
|
(void) label; /* no warning */
|
||||||
if (!feature || (feature->rrd && (feature->type == data->type)))
|
if (!feature || (feature->rrd && (feature->type == data->type)))
|
||||||
printf ("\n\tDEF:%s=%s:%s:AVERAGE", rawLabel, rrdFile, rawLabel);
|
printf ("\n\tDEF:%s=%s:%s:AVERAGE", rawLabel, rrdFile, rawLabel);
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user