Based on "-O3 -Werror -Wall -Wextra -Wformat-security" output.
* This callback reads the user/system CPU time for each cgroup.
*/
static int read_cpuacct_procs(const char *dirname, char const *cgroup_name,
- void *user_data) {
+ __attribute__((unused)) void *user_data) {
char abs_path[PATH_MAX];
struct stat statbuf;
char buf[1024];
* read_cpuacct_procs callback on every folder it finds, such as "system".
*/
static int read_cpuacct_root(const char *dirname, const char *filename,
- void *user_data) {
+ __attribute__((unused)) void *user_data) {
char abs_path[PATH_MAX];
struct stat statbuf;
int status;
static int old_files;
-static int conntrack_config(const char *key, const char *value) {
+static int conntrack_config(const char *key,
+ __attribute__((unused)) const char *value) {
if (strcmp(key, "OldFiles") == 0)
old_files = 1;
return 0;
} /* }}} int statsd_network_init */
-static void *statsd_network_thread(void *args) /* {{{ */
+static void *statsd_network_thread(__attribute__((unused)) void *args) /* {{{ */
{
struct pollfd *fds = NULL;
size_t fds_num = 0;
* Package Thermal Management Sensor (PTM), and thermal event thresholds.
*/
static int __attribute__((warn_unused_result))
-set_temperature_target(struct thread_data *t, struct core_data *c,
+set_temperature_target(struct thread_data *t,
+ __attribute__((unused)) struct core_data *c,
struct pkg_data *p) {
unsigned long long msr;
unsigned int target_c_local;