On Mon, 2024-01-22 at 23:42 +0100, Xose Vazquez Perez wrote: > spotted by indent: > ./kpartx/gpt.c:623: Warning:old style assignment ambiguity in "=-". > Assuming "= -" > > Cc: Martin Wilck <[email protected]> > Cc: Benjamin Marzinski <[email protected]> > Cc: Christophe Varoqui <[email protected]> > Cc: DM-DEVEL ML <[email protected]> > Signed-off-by: Xose Vazquez Perez <[email protected]> > --- > kpartx/gpt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
This "ambiguity" must relate to some ancient compilers accepting '=-' as an alias for '-='. That must predate K&R 1st edition (1978), which clearly defines the assignment operator syntax for operator 'op' as 'op=' [1]. But well, it's always good to eliminate warnings, so Reviewed-by: Martin Wilck <[email protected]> [1] https://www.academia.edu/34487452/First_edition_of_c_by_dennis_ritche
