diff options
author | Jakub Kicinski <[email protected]> | 2024-08-28 10:36:09 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-08-29 12:43:29 -0700 |
commit | 3d8806f37d318b10ddf9fa686821f58bc6301c7b (patch) | |
tree | aaff1c1e343dbcb16143c84939d4c9e60d395548 /usr/gen_init_cpio.c | |
parent | d64d11b733dd435c9fce6397bcc0d235c68d1b39 (diff) |
tools: ynl: error check scanf() in a sample
Someone reported on GitHub that the YNL NIPA test is failing
when run locally. The test builds the tools, and it hits:
netdev.c:82:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
82 | scanf("%d", &ifindex);
I can't repro this on my setups but error seems clear enough.
Link: https://github.com/linux-netdev/nipa/discussions/37
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Nicolas Dichtel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'usr/gen_init_cpio.c')
0 files changed, 0 insertions, 0 deletions