summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2025-11-20 23:15:52 +0300
committerChuck Lever <chuck.lever@oracle.com>2026-01-26 18:10:58 +0300
commit9654a0388a3abcfa51cb2d010a6624a6f1f46710 (patch)
tree8260d85e5c72871dead29df325fee4a8ce97dc4a /include/linux
parente344a031a4928e9f0ae3124f0e45e953a873f3bd (diff)
downloadlinux-9654a0388a3abcfa51cb2d010a6624a6f1f46710.tar.xz
xdrgen: Generate "if" instead of "switch" for boolean union enumerators
Eliminate this warning in code generated by xdrgen: fs/nfsd/nfs3xdr_gen.c:220:2: warning: switch condition has boolean value [-Wswitch-bool] 220 | switch (ptr->attributes_follow) { | ^ ~~~~~~~~~~~~~~~~~~~~~~ No more -Wswitch-bool warnings when compiling with W=1. The generated code is functionally equivalent but somewhat more idiomatic. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202511172336.Y75zj4v6-lkp@intel.com/ Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions