diff options
author | Tom Hughes <tomhughes@chromium.org> | 2023-03-17 15:52:26 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-24 21:38:25 +0000 |
commit | 4ac59af42a864d29e5172426c1b533973e0d14ee (patch) | |
tree | 0786acff98a9d2005f9ac4dee4e5f6ff49aacfda /zephyr/test/drivers/rt9490 | |
parent | 05cb582bfd839307030088ac18de220b12bfccb1 (diff) | |
download | chrome-ec-4ac59af42a864d29e5172426c1b533973e0d14ee.tar.gz |
include/usb_descriptor.h: Replace wchar_t with uint16_t
We're compiling with -fshort-wchar, which forces wchar_t to be 16-bits:
https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html.
Ultimately, it looks like the goal was to force wchar_t to be compatible
with the native character type on Windows (UTF-16LE).
Use uint16_t to be explicit about the size we're using, which also
allows us to remove the -fshort-wchar flag.
-fshort-wchar causes issues when linking with libunwind, since libunwind
is not compiled with -fshort-wchar:
ld.lld: error: linking module flags 'wchar_size': IDs have conflicting
values in '/usr/armv7m-cros-eabi/usr/lib/libunwind.a(Unwind-EHABI.cpp.o
at 34472)' and 'ld-temp.o'
This change has no effect on the generated code (see TEST line).
BRANCH=none
BUG=b:274162810
TEST=./util/compare_build.sh -b all -j
=> MATCH
Change-Id: Iab397cb1b83d162d819322aa839e427c4236431b
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4350955
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'zephyr/test/drivers/rt9490')
0 files changed, 0 insertions, 0 deletions