diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-14 10:59:04 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-14 15:19:19 -0300 |
commit | 89896051f8dae5a04ada1f5fbeeaedc23f484f68 (patch) | |
tree | c5f631e1b4d80e178baca24abf351a956a4d8b0f /scripts/gdb/linux/proc.py | |
parent | 9d6aae725454beada044179f1005c8f8c206dd6a (diff) |
perf tools: Do not put a variable sized type not at the end of a struct
As this is a GNU extension and while harmless in this case, we can do
the same thing in a more clearer way by using an existing thread_map
constructor.
With this we avoid this while compiling with clang:
util/parse-events.c:2024:21: error: field 'map' with variable sized type 'struct thread_map' not at the end of a struct or class is a GNU extension
[-Werror,-Wgnu-variable-sized-type-not-at-end]
struct thread_map map;
^
1 error generated.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions