diff options
author | David Robillard <d@drobilla.net> | 2023-08-23 10:46:33 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-08-23 10:46:33 -0400 |
commit | df6f2c372602981398151cd939c214a1f269178c (patch) | |
tree | e652f5e9a9067b9f0b09a548929c2c7ea1147c55 /src | |
parent | e52e89f85e32ce32a359e0ce0489f8d52aa71866 (diff) | |
download | ingen-df6f2c372602981398151cd939c214a1f269178c.tar.gz ingen-df6f2c372602981398151cd939c214a1f269178c.tar.bz2 ingen-df6f2c372602981398151cd939c214a1f269178c.zip |
Fix build with GCC 13
Diffstat (limited to 'src')
-rw-r--r-- | src/Configuration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 67a91dae..7d3d9c40 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -290,8 +290,8 @@ Configuration::save(URIMap& uri_map, } // Attempt to open file for writing - const std::unique_ptr<FILE, decltype(&fclose)> file{fopen(path.c_str(), "w"), - &fclose}; + const std::unique_ptr<FILE, int (*)(FILE*)> file{ + fopen(path.c_str(), "w"), &fclose}; if (!file) { throw FileError(fmt("Failed to open file %1% (%2%)", path, strerror(errno))); |