]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - tools/perf/builtin-record.c
perf_counter tools: Add more warnings and fix/annotate them
[mirror_ubuntu-bionic-kernel.git] / tools / perf / builtin-record.c
index d18546f37d7c5661cfa0d6d55c7d921124461d00..4ef78a5e6f326bf7aa08cc10715403b86574a5fe 100644 (file)
@@ -294,7 +294,7 @@ static void pid_synthesize_mmap_samples(pid_t pid)
        while (1) {
                char bf[BUFSIZ], *pbf = bf;
                struct mmap_event mmap_ev = {
-                       .header.type = PERF_EVENT_MMAP,
+                       .header = { .type = PERF_EVENT_MMAP },
                };
                int n;
                size_t size;
@@ -650,7 +650,7 @@ static const struct option options[] = {
        OPT_END()
 };
 
-int cmd_record(int argc, const char **argv, const char *prefix)
+int cmd_record(int argc, const char **argv, const char *prefix __used)
 {
        int counter;