Commit 378eda1
committed
Avoid adding fastcall attribute on linux aarch64
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 0b59d98 commit 378eda1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments