commit | fc34925d45add6f1c81a42a7632621e69bfdc43e | [log] [tgz] |
---|---|---|
author | Han Shen <shenhan@google.com> | Thu Aug 30 11:36:04 2012 -0700 |
committer | Gerrit <chrome-bot@google.com> | Thu Sep 06 18:13:19 2012 -0700 |
tree | 29b7ea8de755f51eaf7ac4b7a03a6c5bc34926fa | |
parent | f8f970a33a751ccdbe6d058879aade2b0a9ad2cd [diff] |
Fix shill unittest build problem for gcc 4.7. gcc 4.7 is more strict about type conversion in initilization list, for example - const char apple[] = {0xff, 0xfe}; The above compiles ok prior to gcc 4.7, but fails on gcc 4.7 with -Wall -Werror. The reason is that 0xff is out of bound for (signed) char type. TEST=Built/tested using gcc 4.7 BUG=None Change-Id: I597cac783954b856726494b757d69ddbc6c4436b Reviewed-on: https://gerrit.chromium.org/gerrit/31908 Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Ready: Han Shen <shenhan@chromium.org> Tested-by: Han Shen <shenhan@chromium.org>