When I compile the following C source with gcc
version 8.1.1, I get a warning: ‘stdcall’ attribute ignored [-Wattributes]
.
Why does gcc choose to ignore this attribute and what can I do to make it accept it?
__attribute__((stdcall)) int S(int a) {
return a * (a+1);
}
int main() {
return S(6);
}