From 87ddfc3b62223bff0ec4d57be5841bccbca3081a 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 --- thrift/test/FastProto.thrift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrift/test/FastProto.thrift b/thrift/test/FastProto.thrift index 4136904d701..20258b13323 100644 --- a/thrift/test/FastProto.thrift +++ b/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; }