From e54a823b034c3ac424a71d7c7a579eeec1e26d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Blondon?= Date: Thu, 8 May 2025 18:32:08 +0200 Subject: [PATCH] fix: replace a statement by an assigment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The statement had no effect. It's in a block intended for initialization (as shown in the line 639) so an assigment was probably the intended behaviour. The graphical output is the same with or without this patch. Detected by a warning from gcc: spharm.c: In function ‘SpharmGenTest’: spharm.c:640:15: warning: statement with no effect [-Wunused-value] 640 | objtype == 0; | ~~~~~~~~^~~~ --- src/samples/gu/spharm/spharm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/samples/gu/spharm/spharm.c b/src/samples/gu/spharm/spharm.c index d1a9df39..992c1419 100644 --- a/src/samples/gu/spharm/spharm.c +++ b/src/samples/gu/spharm/spharm.c @@ -637,7 +637,7 @@ void SpharmGenTest(int rendermode) //objtype = 6; // make sure we end up back in same spot } break; default: // none found, so move to next one, and trigger re-gen - objtype == 0; + objtype = 0; inited = 0; break; }