From 2e211211a76782b6084194a5ced94c0795460047 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 21 Feb 2015 16:12:14 -0500 Subject: Use FLEXIBLE_ARRAY_MEMBER in a number of other places. I think we're about done with this... --- src/backend/utils/adt/tsvector_op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/utils/adt/tsvector_op.c') diff --git a/src/backend/utils/adt/tsvector_op.c b/src/backend/utils/adt/tsvector_op.c index 3ac15f4d1f0..266a728ef6a 100644 --- a/src/backend/utils/adt/tsvector_op.c +++ b/src/backend/utils/adt/tsvector_op.c @@ -44,7 +44,7 @@ typedef struct StatEntry struct StatEntry *left; struct StatEntry *right; uint32 lenlexeme; - char lexeme[1]; + char lexeme[FLEXIBLE_ARRAY_MEMBER]; } StatEntry; #define STATENTRYHDRSZ (offsetof(StatEntry, lexeme)) -- cgit v1.2.3