diff options
| author | Elliott Hughes <enh@google.com> | 2015-08-25 17:48:12 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2015-08-25 17:48:12 -0700 |
| commit | 62077d32a245b5a5a687265671219b31f3e4f99c (patch) | |
| tree | b014f1c38731986048e8bf37c4f9411b29a52be7 /base/errors_unix.cpp | |
| parent | 626433024df69520b0b45da563b8afce750b25c6 (diff) | |
Possible Mac build fix.
The error was this:
system/core/adb/usb_osx.cpp:203:74: error: values of type 'UInt32' should not
be used as format arguments; add an explicit cast to 'unsigned int' instead
[-Werror,-Wformat]
snprintf(devpathBuf, sizeof(devpathBuf), "usb:%" PRIu32 "X", locationId);
~~~ ^~~~~~~~~~
(unsigned int)
Which seems to be because on LP64 UInt32 is "unsigned int" but on LP32 it was
"unsigned long". We don't have to care about LP32, so -- if we can -- we're
probably better off just using uint32_t instead of UInt32.
Change-Id: I576f76cf2016ee59caccbc317ef74b6e8d71d722
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
