Suppress -Wvolatile gcc warnings in Guile wrappers for C++20
This commit is contained in:
parent
ac8864bc59
commit
e0ed4cc62d
2 changed files with 6 additions and 2 deletions
|
|
@ -2,6 +2,12 @@
|
||||||
* guile_scm_run.swg
|
* guile_scm_run.swg
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if __GNUC__ >= 10
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
#pragma GCC diagnostic ignored "-Wvolatile" /* For 'volatile SCM *' in at least Guile 3.0 and earlier */
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <libguile.h>
|
#include <libguile.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
#ifdef SWIGGUILE_SCM
|
#ifdef SWIGGUILE_SCM
|
||||||
|
|
||||||
/* Hook the runtime module initialization
|
|
||||||
into the shared initialization function SWIG_Guile_Init. */
|
|
||||||
%runtime %{
|
%runtime %{
|
||||||
/* Hook the runtime module initialization
|
/* Hook the runtime module initialization
|
||||||
into the shared initialization function SWIG_Guile_Init. */
|
into the shared initialization function SWIG_Guile_Init. */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue