Skip to content

Commit

Permalink
bootloader: remove superfluous argument to pyi_arch_status_new() call
Browse files Browse the repository at this point in the history
The function call should take no arguments, but it seems that only
some particular compilers (or their settings) take an issue with
the superfluous argument.
  • Loading branch information
rokm committed Apr 12, 2022
1 parent b87d426 commit 7acfd67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bootloader/src/pyi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pyi_main(int argc, char * argv[])

VS("PyInstaller Bootloader 3.x\n");

archive_status = pyi_arch_status_new(archive_status);
archive_status = pyi_arch_status_new();
if (archive_status == NULL) {
return -1;
}
Expand Down
2 changes: 2 additions & 0 deletions news/6742.bootloader.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Remove superfluous argument to ``pyi_arch_status_new`` call in ``pyi_main.c``
to allow building with compilers that enable ``-Wunprototyped-calls``.

0 comments on commit 7acfd67

Please sign in to comment.