From 12be7b7bf7308aed4288419154d5227f11a441cf Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 20 Jul 2018 09:22:22 +0000 Subject: [PATCH] [Xray] fix c99 warning build about flexible array semantics Reviewers: dberris Reviewed By: dberris Differential Revision: https://reviews.llvm.org/D49590 llvm-svn: 337536 --- compiler-rt/lib/xray/xray_segmented_array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/xray/xray_segmented_array.h b/compiler-rt/lib/xray/xray_segmented_array.h index 018c2aa9e4dc..11dd794fa520 100644 --- a/compiler-rt/lib/xray/xray_segmented_array.h +++ b/compiler-rt/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: