bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clang warnings in regcomp.c


From: Bruno Haible
Subject: Re: clang warnings in regcomp.c
Date: Sat, 10 Oct 2020 12:45:30 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; )

Paul Eggert wrote:
> > What is the point of these parentheses?
> 
> Haven't a clue. It's an unusual style.
> 
> >   static reg_errcode_t preorder (bin_tree_t *root,
> > -                          reg_errcode_t (fn (void *, bin_tree_t *)),
> > +                          reg_errcode_t fn (void *, bin_tree_t *),
> >                            void *extra);
> 
> For corrections like that I suggest the style "reg_errcode_t (*fn) (void *, 
> bin_tree_t *)" instead, as that's the usual style in glibc and I expect it is 
> the style that was intended in regcomp.c anyway.

Thanks for the advice. I reported it on the glibc tracker:
https://sourceware.org/bugzilla/show_bug.cgi?id=26725

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]