hlo,
Im using MicroSoft vs-code
, with clangd
extension, and not the MS's official c/cpp one.
program.c
:
...
{
int result;
result = (((result = open("/tmp/file.txt", O_RDONLY)) == -1)
? -1
: close(result));
}
...
In the above portion of my code, vs-code
is warning me "Multiple unsequenced modifications to 'result' clang(-Wunsequenced)",
But when I compile the program, with both gcc, and clang, it works as intended, neither giving any error, nor any un-defined behavior,
It is even visible (without compile) that everything is as good, than why is the system complaining,
How may I silence it, any command?,
thanks