Displaying 1 result from an estimated 1 matches for "wself".
Did you mean:
self
2011 Nov 28
1
[LLVMdev] -Wx backing out a previous -Wno-error=x
...ined due to gcc
compatibility, or non-intentional.
compiling xxx.c with an explicit
int n;
...
n = n;
...
via
'clang -Wno-error=self-assign -Werror xxx.c -o xxx'
i get the following warning:
"
tower.c:5:7: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
n = n;
~ ^ ~
1 warning generated.
"
... so far so good. however adding an extra "-Wself-assign" or "-Wall" as the
last flag, will turn the previous warning into an error. so it seems those
warnings do in fact revert the "-Wno-error=self-assign":...