From a8419218468702aaf7183b36cc318af8ea5d9da9 Mon Sep 17 00:00:00 2001 From: Aristidis Papaioannou Date: Wed, 27 Nov 2024 12:42:01 -0800 Subject: [PATCH] Add missing annotation to field id 0 in FastProto.thrift Reviewed By: thedavekwon Differential Revision: D66546053 fbshipit-source-id: a1f62ccf46d5edb126d8b3e67998668c57e657e8 --- third-party/thrift/src/thrift/test/FastProto.thrift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/thrift/src/thrift/test/FastProto.thrift b/third-party/thrift/src/thrift/test/FastProto.thrift index 4136904d701a8a..20258b133232a7 100644 --- a/third-party/thrift/src/thrift/test/FastProto.thrift +++ b/third-party/thrift/src/thrift/test/FastProto.thrift @@ -54,6 +54,6 @@ struct StructWithUnion { struct NegativeFieldId { -1: i32 anInteger; - 0: string aString; + 0: string aString (cpp.deprecated_allow_zero_as_field_id); 5: double aDouble; }