Closed aytey closed 2 years ago
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
attributes.c:1:1 warning: missing type specifier, assume `int'
^
attributes.c:2:40 error: expected `,' or `;' or `=' after declarator, got `foo'
u32 __attribute__ ((noinline, nothrow))
^
attributes.c:5:14 warning: missing type specifier, assume `int'
return 0;
^
attributes.c:5:14 error: expected <identifier> or `(' starting direct-declarator, got `}'
return 0;
^
(return code 0)
typedef int u32;
u32 __attribute__ ((noinline, nothrow))
foo (void)
{
return 0;
}
psychec
versioncommit d10dc1ddfb7ea845f59274a4d6ca5d021ab31423
Author: Leandro T. C. Melo <LTCMELO@GMAIL.COM>
Date: Tue Mar 9 21:18:30 2021 -0300
fix postfixing on compound literal
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
attributes.c:0:17 warning: missing type specifier, assume `int'
typedef int u32;
^
attributes.c:1:22 error: expected `,' or `;' or `=' after declarator, got `foo0'
u32 __attribute__(()) foo0;
^
(return code 0)
typedef int u32;
u32 __attribute__(()) foo0;
psychec
versioncommit d10dc1ddfb7ea845f59274a4d6ca5d021ab31423
Author: Leandro T. C. Melo <LTCMELO@GMAIL.COM>
Date: Tue Mar 9 21:18:30 2021 -0300
fix postfixing on compound literal
Fixed with 2852ad5e1f0f5556d969a6a3b8f5ac7086568882
If eligible for the bounty, I wish this to be donated to a local animal charity of the maintainer's choice
GCC version:
clang version:
Output of
gcc -Werror -Wall -Wextra -Wpedantic -Wno-unused-variable -pedantic -std=c11 -c $FNAME
Output of
clang -Werror -Wall -Wextra -Wpedantic -Wno-unused-variable -pedantic -std=c11 -c $FNAME
Output of
cnip $FNAME
Content of file
psychec
version