mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +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
|
||||
rrdGetSensors_DS
|
||||
(void *_data, const char *rawLabel, const char *label, const FeatureDescriptor *feature) {
|
||||
(void) label; /* no warning */
|
||||
if (!feature || feature->rrd) {
|
||||
struct ds *data = (struct ds *) _data;
|
||||
char *ptr = rrdBuff + data->num * RRD_BUFF;
|
||||
@@ -287,6 +288,7 @@ static int
|
||||
rrdCGI_DEF
|
||||
(void *_data, const char *rawLabel, const char *label, const FeatureDescriptor *feature) {
|
||||
struct gr *data = (struct gr *) _data;
|
||||
(void) label; /* no warning */
|
||||
if (!feature || (feature->rrd && (feature->type == data->type)))
|
||||
printf ("\n\tDEF:%s=%s:%s:AVERAGE", rawLabel, rrdFile, rawLabel);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user