From 936d5cd00b5ade6bb5e5f72ecb62a2e41414c590 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 2 Dec 2024 20:38:20 -0500 Subject: Fix potential use of uninitialized value According to GCC's -Wmaybe-uninitialized, this is a potential use of an uninitialized value. I'm not seeing it, but the pattern with get_property() everywhere else is to store the return value as a reference, which makes the warning go away, so do that. --- src/server/DuplexPort.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/DuplexPort.cpp b/src/server/DuplexPort.cpp index f1b3af61..1e07afd2 100644 --- a/src/server/DuplexPort.cpp +++ b/src/server/DuplexPort.cpp @@ -97,7 +97,7 @@ DuplexPort::duplicate(Engine& engine, GraphImpl* parent) { BufferFactory& bufs = *engine.buffer_factory(); - const Atom polyphonic = get_property(bufs.uris().ingen_polyphonic); + const Atom& polyphonic = get_property(bufs.uris().ingen_polyphonic); auto* dup = new DuplexPort( bufs, parent, symbol, _index, -- cgit v1.2.1