From f3c53c57134e51a1db5d78478125aeda7d81fa20 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 20 Jul 2018 09:22:22 +0000 Subject: [Xray] fix c99 warning build about flexible array semantics Reviewers: dberris Reviewed By: dberris Differential Revision: https://reviews.llvm.org/D49590 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@337536 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/xray/xray_segmented_array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/xray/xray_segmented_array.h') diff --git a/lib/xray/xray_segmented_array.h b/lib/xray/xray_segmented_array.h index 018c2aa9e..11dd794fa 100644 --- a/lib/xray/xray_segmented_array.h +++ b/lib/xray/xray_segmented_array.h @@ -40,7 +40,7 @@ template class Array { // We want each segment of the array to be cache-line aligned, and elements of // the array be offset from the beginning of the segment. struct Segment : SegmentBase { - char Data[]; + char Data[1]; }; public: -- cgit v1.2.3