freebsd-dev/lib
наб a9e2788ffe
libspl: cast to uintptr_t instead of !!ing
This led to these two warning types:
  debug.h:139:67: warning: the address of ‘ARC_anon’
  will always evaluate as ‘true’ [-Waddress]
    139 | #define ASSERT3P(x, y, z)
              ((void) sizeof (!!(x)), (void) sizeof (!!(z)))
        |                                               ^
  arc.c:1591:2: note: in expansion of macro ‘ASSERT3P’
   1591 |  ASSERT3P(hdr->b_l1hdr.b_state, ==, arc_anon);
        |  ^~~~~~~~
and
  arc.h:66:44: warning: ‘<<’ in boolean context,
  did you mean ‘<’? [-Wint-in-bool-context]
     66 | #define HDR_GET_LSIZE(hdr)
              ((hdr)->b_lsize << SPA_MINBLOCKSHIFT)
  debug.h:138:46: note: in definition of macro ‘ASSERT3U’
    138 | #define ASSERT3U(x, y, z)
              ((void) sizeof (!!(x)), (void) sizeof (!!(z)))
        |                        ^
  arc.c:1760:12: note: in expansion of macro ‘HDR_GET_LSIZE’
   1760 |   ASSERT3U(HDR_GET_LSIZE(hdr), !=, 0);
        |            ^~~~~~~~~~~~~

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13009
2022-01-24 17:05:42 -08:00
..
libavl lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libefi libefi: remove efi_type() 2022-01-18 14:40:43 -08:00
libicp Remove sha1 hashing from OpenZFS, it's not used anywhere. 2022-01-06 16:16:28 -08:00
libnvpair module/*.ko: prune .data, global .rodata 2022-01-14 15:37:55 -08:00
libshare libshare: nfs: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
libspl libspl: cast to uintptr_t instead of !!ing 2022-01-24 17:05:42 -08:00
libtpool lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libunicode cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libuutil Add const to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
libzfs libefi: remove efi_type() 2022-01-18 14:40:43 -08:00
libzfs_core libzfs_core: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
libzfsbootenv Add const to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
libzpool Updated the lz4 decompressor 2022-01-07 10:36:49 -08:00
libzstd cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzutil libzutil: import: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
Makefile.am Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00