diff options
author | George Burgess IV <gbiv@google.com> | 2019-06-13 15:13:02 -0700 |
---|---|---|
committer | George Burgess IV <gbiv@google.com> | 2019-06-13 15:18:16 -0700 |
commit | 06bb4ce8dea5ef11ff29012c08e81b9110796f35 (patch) | |
tree | dffe532c644d7820c6a9b36aaf891d8a1e279868 /libc/stdio/stdio.cpp | |
parent | 9894ec459637c5c805b8e03d0a0a7f3ff5d6c1d3 (diff) |
fortify: fix tests on x86_64
My declval hack failed on x86_64 with:
```
substitution failure [with T = __va_list_tag [1]]: function cannot
return array type '__va_list_tag [1]'
```
...Because the type of va_list is compiler magic, it's fine for it to be
whatever the compiler wants it to be. Thankfully, pointers to arrays can
be returned, so let's use those instead.
Bug: 135210098
Test: mma on aosp_blueline-eng and aosp_x86_64-eng; the latter was
failing before this patch.
Change-Id: Iefd57c0f8e823653fd70633fb6ee75cfc0022430
Diffstat (limited to 'libc/stdio/stdio.cpp')
0 files changed, 0 insertions, 0 deletions