summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2019-06-13 15:13:02 -0700
committerGeorge Burgess IV <gbiv@google.com>2019-06-13 15:18:16 -0700
commit06bb4ce8dea5ef11ff29012c08e81b9110796f35 (patch)
treedffe532c644d7820c6a9b36aaf891d8a1e279868 /libc/stdio/stdio.cpp
parent9894ec459637c5c805b8e03d0a0a7f3ff5d6c1d3 (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