Skip to content

Conversation

@trofi
Copy link

@trofi trofi commented Nov 15, 2025

Without the change the build fails on `clang as:

/build/bladeRF/host/utilities/bladeRF-cli/src/cmd/flash_image.c:71:35:
  error: overlapping comparisons always evaluate to true [-Werror,-Wtautological-overlap-compare]
   71 |                 if (val[i] >= 'a' || val[i] <= 'f') {
      |                     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~

I think it flags real error. Let's use && to catch the range.

Without the change the build fails on `clang as:

    /build/bladeRF/host/utilities/bladeRF-cli/src/cmd/flash_image.c:71:35:
      error: overlapping comparisons always evaluate to true [-Werror,-Wtautological-overlap-compare]
       71 |                 if (val[i] >= 'a' || val[i] <= 'f') {
          |                     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~

I think it flags real error. Let's use `&&` to catch the range.
@CLAassistant
Copy link

CLAassistant commented Nov 15, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants