Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • QEMU QEMU
  • QEMUQEMU
  • Issues
  • #963

qemu-7.0.0-rc2/migration/ram.c:1292: possible wrong operator ?

I just tried to compile 7.0.0-rc2 with new clang-14. It said:

migration/ram.c:1292:31: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]

Source code is

    qemu_put_buffer_async(rs->f, buf, TARGET_PAGE_SIZE,
                          migrate_release_ram() &
                          migration_in_postcopy());

Maybe better code

    qemu_put_buffer_async(rs->f, buf, TARGET_PAGE_SIZE,
                          migrate_release_ram() &&
                          migration_in_postcopy());
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking