-Wvolatile gcc warning fix for C++20
This commit is contained in:
parent
ffbde7a132
commit
ea3570ddb1
1 changed files with 6 additions and 0 deletions
|
|
@ -26,6 +26,12 @@
|
||||||
}
|
}
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
|
%{
|
||||||
|
#if __cplusplus >= 202002L
|
||||||
|
#define volatile
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int a;
|
int a;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue