mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
This cleans up a number of warnings that appeared after the parser rework
commits were made (as well as a few other minor warnings elsewhere). The Makefile change is to avoid passing -Wstrict-prototypes and -Wnested-externs to the C++ compiler, which the compiler yells about and then ignores. Since we compile with -Wmissing-field-initializers I dropped the unreferenced zero-width fields in the header structs, and then explicitly initialized the remaining fields. I tagged several unused function parameters to silence those warnings. And finally, I dropped the unused filter_escapes() too.
This commit is contained in:
@@ -11,8 +11,8 @@ struct table_set_header {
|
||||
uint32_t th_hsize;
|
||||
uint32_t th_ssize;
|
||||
uint16_t th_flags;
|
||||
char th_version[];
|
||||
/* char th_name[];
|
||||
/* char th_version[];
|
||||
char th_name[];
|
||||
char th_pad64[];*/
|
||||
} __attribute__ ((packed));
|
||||
|
||||
@@ -34,8 +34,8 @@ struct table_header {
|
||||
uint16_t td_flags;
|
||||
uint32_t td_hilen;
|
||||
uint32_t td_lolen;
|
||||
char td_data[];
|
||||
/* char td_pad64[];*/
|
||||
/* char td_data[];
|
||||
char td_pad64[];*/
|
||||
} __attribute__ ((packed));
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user