No idea what's wrong here, probably nothing.
> The second:
> <snip>
> gcc -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO
> -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return
> -fpie -fPIE -c tee.c
> ing: return type of 'main' is not 'int' [-Wmain]
> 82 | main(int argc, char *argv[])
> | ^~~~
That's easy to fix.
> tee.c: In function 'main':
> tee.c:86:17: warning: unused variable 'opt' [-Wunused-variable]
> 86 | int opt;
> | ^~~
That's also easy.
> tee.c:122:24: warning: argument 1 range [18446744071562067968,
> 18446744073709551615] exceeds maximum object size 9223372036854775807
> [-Walloc-size-larger-than=]
> 122 | filepointers = calloc(numfiles, sizeof(FILE *));
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from tee.c:33:
> d:\users\john\documents\software\mingw\mingw64\x86_64-w64-mingw32\include\malloc.h:57:17:
> note: in a call to allocation function 'calloc' declared here
> 57 | void *__cdecl calloc(size_t _NumOfElements,size_t
> _SizeOfElements);
> | ^~~~~~
> </snip>
No idea.
--
TALL KNIGHT: We are now no longer the Knights Who Say Ni!
ONE KNIGHT: Ni!
OTHERS: Sh!
ONE KNIGHT: (whispers) Sorry.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///