[gn][fvm-host] Suppress warnings in test code

[4118->5748/9923 ~58] CXX host-x64-linux-clang/obj/system/utest/fvm-host/fvm-host-test.main.cpp.o
../system/utest/fvm-host/main.cpp:305:5: warning: comparison of integers of different signs: 'const long' and 'const unsigned long' [-Wsign-compare]
    ASSERT_EQ(emu_write(fd, data.get(), size), size, "Failed to write data to file");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../system/ulib/unittest/include/unittest/unittest.h:601:45: note: expanded from macro 'ASSERT_EQ'
                                 ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../system/ulib/unittest/include/unittest/unittest.h:599:12: note: expanded from macro 'ASSERT_CMP'
    UT_CMP(op, lhs, rhs, lhs_str, rhs_str, RET_FALSE, ##__VA_ARGS__)
    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../system/ulib/unittest/include/unittest/unittest.h:416:24: note: expanded from macro 'UT_CMP'
        if (!(_lhs_val op _rhs_val)) {                                  \
              ~~~~~~~~ ^  ~~~~~~~~
../system/utest/fvm-host/main.cpp:342:5: warning: comparison of integers of different signs: 'const long' and 'const unsigned long' [-Wsign-compare]
    ASSERT_EQ(write(datafd.get(), data.get(), size), size, "Failed to write data to file");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../system/ulib/unittest/include/unittest/unittest.h:601:45: note: expanded from macro 'ASSERT_EQ'
                                 ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../system/ulib/unittest/include/unittest/unittest.h:599:12: note: expanded from macro 'ASSERT_CMP'
    UT_CMP(op, lhs, rhs, lhs_str, rhs_str, RET_FALSE, ##__VA_ARGS__)
    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../system/ulib/unittest/include/unittest/unittest.h:416:24: note: expanded from macro 'UT_CMP'
        if (!(_lhs_val op _rhs_val)) {                                  \
              ~~~~~~~~ ^  ~~~~~~~~
../system/utest/fvm-host/main.cpp:710:11: warning: implicit conversion loses integer precision: 'time_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
    srand(time(0));
    ~~~~~ ^~~~~~~
3 warnings generated.

ZX-3415 #comment [gn][fvm-host] Suppress warnings in test code

Test: CQ
Change-Id: Ia3014a4cc40fc72ca8bca7dbe55fda244b17029a
1 file changed
tree: 41b13474309e1dbb9a53b0e19ae4f78ee44c94a5
  1. boards/
  2. build/
  3. buildtools/
  4. bundles/
  5. docs/
  6. garnet/
  7. peridot/
  8. products/
  9. scripts/
  10. sdk/
  11. src/
  12. zircon/
  13. .clang-format
  14. .dir-locals.el
  15. .gitattributes
  16. .gitignore
  17. .gn
  18. AUTHORS
  19. CODE_OF_CONDUCT.md
  20. CONTRIBUTING.md
  21. LICENSE
  22. OWNERS
  23. PATENTS
  24. README.md
  25. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See the documentation.