Closed aytey closed 2 years ago
Very similar:
gcc (SUSE Linux) 10.2.1 20201202 [revision e563687cf9d3d1278f45aaebd03e0f66531076c9]
clang version 11.0.1
gcc -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
(return code 0)
clang -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
(return code 0)
cnip $FNAME
imag.c:3:17 error: expected `;', got `x'
(void)__imag__ x;
^
(return code 0)
void foo(void) {
float x = 0;
(void)x;
(void)__imag__ x;
}
psychec
versioncommit ca31d32becabd3abf70fc8c82a86f4f57d1b6323
Author: Leandro T. C. Melo <LTCMELO@GMAIL.COM>
Date: Sat Mar 13 14:56:40 2021 -0300
disable certain lang. extensions by default
Same for __real__
:
gcc (SUSE Linux) 10.2.1 20201202 [revision e563687cf9d3d1278f45aaebd03e0f66531076c9]
clang version 11.0.1
gcc -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
(return code 0)
clang -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
(return code 0)
cnip $FNAME
real.c:3:17 error: expected `;', got `x'
(void)__real__ x;
^
(return code 0)
void foo(void) {
float x = 0;
(void)x;
(void)__real__ x;
}
psychec
versioncommit ca31d32becabd3abf70fc8c82a86f4f57d1b6323
Author: Leandro T. C. Melo <LTCMELO@GMAIL.COM>
Date: Sat Mar 13 14:56:40 2021 -0300
disable certain lang. extensions by default
These are extensions. I just created a label for this kind of errors.
GCC version:
clang version:
Output of
gcc -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
Output of
clang -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
Output of
cnip $FNAME
Content of file
psychec
version