summaryrefslogtreecommitdiff
path: root/lib/prefix.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-07-29 15:49:49 +0200
committerDavid Lamparter <equinox@diac24.net>2019-07-29 15:49:49 +0200
commit4937287fb91fdb871a225b0339780ea8c4ac138d (patch)
treed20c89dc7ba71d2299e7647900ed97e35a2f9920 /lib/prefix.c
parent4d5cf6bc460160ab3df0eba696ae4a99193101b2 (diff)
lib: fix prefix_copy() for clang-SA
https://bugs.llvm.org/show_bug.cgi?id=42811 Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/prefix.c')
-rw-r--r--lib/prefix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index 78a97fd148..1a4a914e05 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -628,6 +628,10 @@ int prefix_match_network_statement(const struct prefix *n,
return 1;
}
+#ifdef __clang_analyzer__
+#undef prefix_copy /* cf. prefix.h */
+#endif
+
void prefix_copy(union prefixptr udest, union prefixconstptr usrc)
{
struct prefix *dest = udest.p;