can-utils/isobusfs
Oleksij Rempel 91a93353ae isobusfs: fix clang warnings
Fix following clang warnings:
  CC       isobusfs/isobusfs_srv_fa.o
  isobusfs/isobusfs_srv_fa.c:387:6: warning: variable 'handle' is used
  uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (ret < 0) {
            ^~~~~~~
  isobusfs/isobusfs_srv_fa.c:411:15: note: uninitialized use occurs here
        res.handle = handle;
                     ^~~~~~
  isobusfs/isobusfs_srv_fa.c:387:2: note: remove the 'if' if its condition is
  always false
        if (ret < 0) {
        ^~~~~~~~~~~~~~
  isobusfs/isobusfs_srv_fa.c:368:6: warning: variable 'handle' is used
  uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (name_len > ISOBUSFS_MAX_PATH_NAME_LENGTH) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  isobusfs/isobusfs_srv_fa.c:411:15: note: uninitialized use occurs here
        res.handle = handle;
                     ^~~~~~
  isobusfs/isobusfs_srv_fa.c:368:2: note: remove the 'if' if its condition is
  always false
        if (name_len > ISOBUSFS_MAX_PATH_NAME_LENGTH) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  isobusfs/isobusfs_srv_fa.c:362:6: warning: variable 'handle' is used
  uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (name_len > msg->len - sizeof(*req)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  isobusfs/isobusfs_srv_fa.c:411:15: note: uninitialized use occurs here
        res.handle = handle;
                     ^~~~~~
  isobusfs/isobusfs_srv_fa.c:362:2: note: remove the 'if' if its condition is
  always false
        if (name_len > msg->len - sizeof(*req)) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  isobusfs/isobusfs_srv_fa.c:356:6: warning: variable 'handle' is used
  uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (!client) {
            ^~~~~~~
  isobusfs/isobusfs_srv_fa.c:411:15: note: uninitialized use occurs here
        res.handle = handle;
                     ^~~~~~
  isobusfs/isobusfs_srv_fa.c:356:2: note: remove the 'if' if its condition is
  always false
        if (!client) {
        ^~~~~~~~~~~~~~
  isobusfs/isobusfs_srv_fa.c:352:16: note: initialize the variable 'handle' to
  silence this warning
        uint8_t handle;
                      ^
                       = '\0'
  isobusfs/isobusfs_srv_fa.c:505:9: warning: variable 'entry_count' set but not
  used [-Wunused-but-set-variable]
        size_t entry_count = 0;
               ^
  5 warnings generated.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2024-03-22 10:44:17 +01:00
..
isobusfs_cli.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cli.h isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cli_cm.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cli_dh.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cli_fa.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cli_int.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cli_selftests.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cmn.c isobusfs_cmn: isobusfs_get_timeout_ms(): fix print on 32 bit archs 2024-02-13 14:08:27 +01:00
isobusfs_cmn.h isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cmn_cm.h isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cmn_dh.c Fixes musl build for ARMv7 2024-02-20 11:06:13 +01:00
isobusfs_cmn_dh.h isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cmn_fa.h isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cmn_fh.h isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_cmn_va.h isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_create_test_dirs.sh isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_create_test_file.sh isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_srv.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_srv.h isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_srv_cm.c Fixes musl build for ARMv7 2024-02-20 11:06:13 +01:00
isobusfs_srv_cm_fss.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_srv_dh.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_srv_fa.c isobusfs: fix clang warnings 2024-03-22 10:44:17 +01:00
isobusfs_srv_fh.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00
isobusfs_srv_vh.c isobusfs: change license to LGPL-2.0-only 2024-02-04 19:15:25 +01:00