From: Robert Varga Date: Fri, 23 Feb 2024 22:30:47 +0000 (+0100) Subject: Do not generate prime when not needed X-Git-Tag: v13.0.1~7 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=37ba772acba4cf4f56e3814c073c64f096f94d02;hp=37ba772acba4cf4f56e3814c073c64f096f94d02;p=mdsal.git Do not generate prime when not needed In case we do not have any properties we end up emitting a local variable which we'll never use -- generating a compiler warning. Improve InterfaceTemplate to check for this condition and emit the prime only if there are actually at least one property. Change-Id: I3341ca075e8c7c0b671a76f226b7bdb99cb12465 Signed-off-by: Robert Varga ---