Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Minor errors crept back.

Date2024-05-10 17:41
FromJohn ff
Subject[Csnd-dev] Minor errors crept back.
Fresh build today

    ugens2.c:

    Copyright (C) 1991 Barry Vercoe, John ffitch, Robin Whittle

    This file is part of Csound.

[ 14%] Building C object CMakeFiles/csound64.dir/OOps/ugens2.c.o
/home/jpff/cs7/cs77/OOps/ugens2.c: In function ‘oscsetA’:
/home/jpff/cs7/cs77/OOps/ugens2.c:1053:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   if (*p->iphs >= 0)
   ^~
/home/jpff/cs7/cs77/OOps/ugens2.c:1055:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
     return OK;

I understand that it may be correct but dubious indentation is a trap
for  the he unwary.  I could fix assuming it is correct as it stands
but it would be better if it was fixed by a generator of the code.
===================================================================
Can anything be done about the pragmas
/home/jpff/cs7/cs77/Opcodes/OpcodeBase.hpp:378:50: note: #pragma
message: Defining heap_object_manager_t.  #pragma message("Defining
heap_object_manager_t.")   They generate warnings and I am attemopting
to return to the zero warnings state we have enjoyed hereto.
========================================================================
 
==John ffitch