diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-04-30 11:10:46 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-06-02 15:57:50 -0700 |
commit | 5bed8036644f552210a7cfcbed2d6d20cf2981b0 (patch) | |
tree | 37f784e181086e99b17e00d46b6da30529751539 /libutils/String16.cpp | |
parent | bf0f25905b12581f05b65b1ebe95211c727ae483 (diff) | |
download | system_core-5bed8036644f552210a7cfcbed2d6d20cf2981b0.zip system_core-5bed8036644f552210a7cfcbed2d6d20cf2981b0.tar.gz system_core-5bed8036644f552210a7cfcbed2d6d20cf2981b0.tar.bz2 |
libutils: turn on -Werror
- Deal with some -Wunused issues
- Override PRI macros (windows)
- Revert use of PRI macros on off64_t (linux)
- Deal with a gnu++11 complaince issue
Change-Id: Ie66751293bd84477a5a6dfd8a57e700a16e36964
Diffstat (limited to 'libutils/String16.cpp')
-rw-r--r-- | libutils/String16.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libutils/String16.cpp b/libutils/String16.cpp index 3bdc349..91efdaa 100644 --- a/libutils/String16.cpp +++ b/libutils/String16.cpp @@ -66,8 +66,6 @@ static char16_t* allocFromUTF8(const char* u8str, size_t u8len) return getEmptyString(); } - const uint8_t* const u8end = u8cur + u8len; - SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); if (buf) { u8cur = (const uint8_t*) u8str; |