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 9:21 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Nov 29, 2026 at 11:44 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> >
> > If you use --pretty=fuller git will show you the commit date.
>
> "git whatchanged" is pretty wired into my brain-flow at this point.  I
> suppose I can mess around with git aliases.
>
> > 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.
>
> Yes, but it has the change date right there in the log itself.
>
> +2026-11-25  Mikael Magnusson  <mikachu@xxxxxxxxx>
> +
> +       * 55261: Doc/Zsh/mod_tcp.yo, Src/Modules/tcp.c, Src/Modules/tcp.h:
> +       add some more ztcp options
>
> I'm not militant about this or anything, but when I went looking for
> recent changes to tcp.c that could have caused the warning, I wasn't
> expecting to see a date in July.  I didn't notice the commit order
> until I looked at the entire tree and saw the display order relative
> to commits in other files.

That's good, because I'm definitely going to keep doing it :). I could
in theory use --reset-author-date when amending the ChangeLog entry
but I will forget anyway so might as well not do it to start with. I
can agree that it's a bit confusing before you know how git handles
author dates, but I do have a habit of sitting on changes for a while
before submitting them (to cut down on re-sends when I find issues
myself).

I also thought I did have -Wall in my CFLAGS but apparently I did not
because I do get the warning when I added it. Oops.

That said, I'll commit this:
-       if (OPT_ISSET(ops,*opt) && !OPT_ISSET(ops,'l')) {
+       if (OPT_ISSET(ops,(unsigned char) *opt) && !OPT_ISSET(ops,'l')) {

based on similar usages:
Src/Zle/zle_keymap.c:    for(op = opns; op->o &&
!OPT_ISSET(ops,(unsigned char) op->o); op++) ;
Src/Zle/zle_keymap.c:    if(OPT_ISSET(ops,(unsigned char) opp->o)) {
Src/Zle/zle_thingy.c:    for(op = opns; op->o && !OPT_ISSET(ops,
(unsigned char) op->o); op++) ;
Src/Zle/zle_thingy.c:    if(OPT_ISSET(ops, (unsigned char) opp->o)) {

-- 
Mikael Magnusson




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