summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-08-23 10:46:33 -0400
committerDavid Robillard <d@drobilla.net>2023-08-23 10:46:33 -0400
commitdf6f2c372602981398151cd939c214a1f269178c (patch)
treee652f5e9a9067b9f0b09a548929c2c7ea1147c55 /src
parente52e89f85e32ce32a359e0ce0489f8d52aa71866 (diff)
downloadingen-df6f2c372602981398151cd939c214a1f269178c.tar.gz
ingen-df6f2c372602981398151cd939c214a1f269178c.tar.bz2
ingen-df6f2c372602981398151cd939c214a1f269178c.zip
Fix build with GCC 13
Diffstat (limited to 'src')
-rw-r--r--src/Configuration.cpp4
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)));