Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/netinfo-private: fix Clang 17 warning #136

Merged
merged 1 commit into from
Nov 9, 2023
Merged

lib/netinfo-private: fix Clang 17 warning #136

merged 1 commit into from
Nov 9, 2023

Conversation

madrisan
Copy link
Owner

@madrisan madrisan commented Nov 9, 2023

  CC       netinfo-private.o
netinfo-private.c:138:34: warning: field 'req' with variable sized type
'struct ethtool_link_settings' not at the end of a struct or class is a
GNU extension [-Wgnu-variable-sized-type-not-at-end]
  138 |     struct ethtool_link_settings req;
      |                                  ^
1 warning generated.

@madrisan madrisan self-assigned this Nov 9, 2023
Fix the Clang warning:

      CC       netinfo-private.o
    netinfo-private.c:138:34: warning: field 'req' with variable sized type
    'struct ethtool_link_settings' not at the end of a struct or class is a
    GNU extension [-Wgnu-variable-sized-type-not-at-end]
      138 |     struct ethtool_link_settings req;
          |                                  ^
    1 warning generated.

Signed-off-by: Davide Madrisan <d.madrisan@proton.me>
@madrisan madrisan merged commit 2ea02e2 into main Nov 9, 2023
16 checks passed
@madrisan madrisan deleted the clang-warn branch November 9, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant