From 7e3d3158d8b325b51ae260ff1e6c49eaefc1ce7c Mon Sep 17 00:00:00 2001 From: Daniel Gorin Date: Sun, 19 Jan 2025 21:06:27 +0000 Subject: [PATCH] Fix incompatible-pointer-type error in nif_SUITE.c Starting with gcc-14, the emulator tests were failing to run due to gcc reporting an "incompatible pointer type" error in nif_SUITE.c. The fix is straighforward --- erts/emulator/test/nif_SUITE_data/nif_SUITE.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erts/emulator/test/nif_SUITE_data/nif_SUITE.c b/erts/emulator/test/nif_SUITE_data/nif_SUITE.c index e8e485a32c38..e9924220d9b6 100644 --- a/erts/emulator/test/nif_SUITE_data/nif_SUITE.c +++ b/erts/emulator/test/nif_SUITE_data/nif_SUITE.c @@ -2861,7 +2861,7 @@ static void monitor_resource_down(ErlNifEnv* env, void* obj, ErlNifPid* pid, * without lock order violation. */ { ErlNifPid pid; - ErlNifPid port; + ErlNifPort port; enif_whereis_pid(env, atom_null, &pid); enif_whereis_port(env, atom_null, &port); }