From 1a1a2d000dc95cdf87f2784193f7213b02f1d29f Mon Sep 17 00:00:00 2001 From: m1tk4 Date: Thu, 2 Jan 2025 17:35:07 -0500 Subject: [PATCH] suppress warning for 'protocols' field from externalWritersToShm() - RAX_NESTED can be empty --- lib/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.cpp b/lib/util.cpp index 606917930..2f1bc7d9b 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -1100,8 +1100,8 @@ namespace Util{ // calculate fLen if missing if (!fLen){ fLen = getDefaultSize(fType); - if (!fLen){ - WARN_MSG("Attempting to add a mandatory-size field without size"); + if (!fLen && fType != RAX_NESTED) { + WARN_MSG("Attempting to add a mandatory-size field '%s' without size", name.c_str()); return; } }