Commit ff58bcf
authored
Avoid adding fastcall attribute on linux aarch64 (#1282)
fastcall should only be added for 32 bit x86, as explained in the
comment. On some linux aarch64 compilers, none of the existing defines
are set, and __aarch64__ is set instead. Adding this avoids warnings
like:
```
In file included from /home/runner/haxelib/hxcpp/git/include/hxcpp.h:336:
/home/runner/haxelib/hxcpp/git/include/hx/Object.h:60:65: warning: ‘fastcall’ attribute directive ignored [-Wattributes]
60 | typedef void (CPPIA_CALL *StackExecute)(struct StackContext *ctx);
| ^
In file included from /home/runner/haxelib/hxcpp/git/include/hxcpp.h:336:
/home/runner/haxelib/hxcpp/git/include/hx/Object.h:60:65: warning: ‘fastcall’ attribute directive ignored [-Wattributes]
60 | typedef void (CPPIA_CALL *StackExecute)(struct StackContext *ctx);
| ^
```1 parent f3f342d commit ff58bcf
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments