nixpkgs/pkgs/development/tools/build-managers/build2/remove-const-void-param.patch
Jan Stranik 7ac1f68ce2 build2: fix build with gcc11
A small source change is needed to make the build2 system compile with current
gcc 11 compiler.

Without the patch, the compilation fails with an error about failing to deduce a
template parameter.
2022-10-05 19:52:16 -04:00

12 lines
445 B
Diff

--- build2-0.14.0_/libbuild2/cc/pkgconfig.cxx 2022-10-04 14:18:24.864604892 -0400
+++ build2-0.14.0/libbuild2/cc/pkgconfig.cxx 2022-10-04 14:20:58.153254961 -0400
@@ -186,7 +186,7 @@
;
static bool
- pkgconf_error_handler (const char* msg, const pkgconf_client_t*, const void*)
+ pkgconf_error_handler (const char* msg, const pkgconf_client_t*, void*)
{
error << runtime_error (msg); // Sanitize the message.
return true;