Skip to content

Commit

Permalink
Fix incompatible-pointer-type error in nif_SUITE.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jcpetruzza authored and sverker committed Jan 20, 2025
1 parent 520edad commit 7e3d315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erts/emulator/test/nif_SUITE_data/nif_SUITE.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7e3d315

Please sign in to comment.