Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Warning compiling latest with gcc on MacOS



On Sun, Nov 29, 2026 at 8:31 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> gcc -c -I. -I../../Src -I../../Src -I../../Src/Zle -I.
> -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -Wall
> -Wmissing-prototypes -ggdb  -o tcp.o tcp.c
> tcp.c:393:6: warning: array subscript is of type 'char' [-Wchar-subscripts]
>   393 |         if (OPT_ISSET(ops,*opt) && !OPT_ISSET(ops,'l')) {
>       |             ^             ~~~~
> ./../../Src/zsh.h:1408:37: note: expanded from macro 'OPT_ISSET'
>  1408 | #define OPT_ISSET(ops,c)        ((ops)->ind[c] != 0)
>       |                                            ^~
> 1 warning generated.
>
> This is from commit b8eda0952 which, despite having July 19 date in
> the git history, was not pushed until November 25.
>
> This is why (a) I prefer keeping the ChangeLog around and (b) I prefer
> re-committing patches rather than processing pull requests (admittedly
> I'm assuming that's what happened here).   The main branch should have
> its chronology in sync with actual "publication", should it not?

If you use --pretty=fuller git will show you the commit date. I'm not
sure what your point here actually is, but the commit date is also
november 25th (since I have to rebase it to add the ChangeLog entry).
Git just keeps track of when I wrote the code as the author date. (I
sent it to the list on Nov 13th, for what it's worth).

I'm not sure how you feel the ChangeLog affects this. It's in the same
order as `git log`, at least in this case.

-- 
Mikael Magnusson




Messages sorted by: Reverse Date, Date, Thread, Author