commit | a16d3e7f3105657362502a0d0b344dcb69956f20 | [log] [tgz] |
---|---|---|
author | Scott Graham <scottmg@google.com> | Wed Feb 13 15:04:49 2019 -0800 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Sat Feb 16 01:08:50 2019 +0000 |
tree | 41b13474309e1dbb9a53b0e19ae4f78ee44c94a5 | |
parent | 6be4f8997b2006938c0dcb55a30bb81d304f9a15 [diff] |
[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
Pink + Purple == Fuchsia (a new operating system)
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.
See Getting Started.
See the documentation.