Suppress -Wvolatile gcc warnings in Guile wrappers for C++20

This commit is contained in:
William S Fulton 2022-07-31 16:18:08 +01:00
commit e0ed4cc62d
2 changed files with 6 additions and 2 deletions

View file

@ -2,6 +2,12 @@
* 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 <stdio.h>
#include <string.h>