diff options
author | Nicholas Vinson <nvinson234@gmail.com> | 2023-04-30 18:50:50 -0400 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2023-05-08 00:11:26 +0200 |
commit | 77599cf0411072591deafe0e567dbbe1eb21b0c8 (patch) | |
tree | ed1933928d6c5e2eb23fd4470219a312f8ad8830 | |
parent | dd5d8b9678c5433eb8ee40f46cf32881a4c89e99 (diff) | |
download | ethtool-77599cf0411072591deafe0e567dbbe1eb21b0c8.tar.gz |
Update FAM syntax to conform to std C.
Found via gcc -fanalyzer. When using the non-standard FAM syntax:
uint32_t req_mask[0];
gcc-13 with the -fanalyzer flag generates an internal compiler error.
Updating the syntax to use the standard C syntax:
uint32_t req_mask[];
works around the gcc bug.
Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
-rw-r--r-- | netlink/features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netlink/features.c b/netlink/features.c index a4dae8f..a93f3e7 100644 --- a/netlink/features.c +++ b/netlink/features.c @@ -266,7 +266,7 @@ int nl_gfeatures(struct cmd_context *ctx) struct sfeatures_context { bool nothing_changed; - uint32_t req_mask[0]; + uint32_t req_mask[]; }; static int find_feature(const char *name, |