John Marriott wrote:

> On 11-Mar-2023 03:36, Bram Moolenaar wrote:
> > Patch 9.0.1397
> > Problem:    Highlight for popupmenu kind and extra cannot be set.
> > Solution:   Add PmenuKind, PmenuKindSel, PmenuExtra and PmenuExtraSel
> >              highlight groups and use them. (Gianmaria Bajo, closes #12114)
> > Files:      runtime/doc/syntax.txt, runtime/doc/options.txt, 
> > src/highlight.c,
> >              src/optiondefs.h, src/popupmenu.c, src/vim.h,
> >              src/testdir/dumps/Test_pum_highlights_01.dump,
> >              src/testdir/dumps/Test_pum_highlights_02.dump,
> >              src/testdir/test_popup.vim
> >
> >
> After this patch, my HP-UX build fails with this error:
> <snip>
>      cc -c -I. -Iproto -DHAVE_CONFIG_H     -O2       -D_REENTRANT -o 
> objects/popupmenu.o popupmenu.c
> cc: "popupmenu.c", line 439: error 1521: Incorrect initialization.
> cc: "popupmenu.c", line 439: error 1521: Incorrect initialization.
> cc: "popupmenu.c", line 439: error 1521: Incorrect initialization.
> cc: "popupmenu.c", line 440: error 1521: Incorrect initialization.
> cc: "popupmenu.c", line 440: error 1521: Incorrect initialization.
> cc: "popupmenu.c", line 440: error 1521: Incorrect initialization.
> *** Error exit code 1
> 
> Stop.
> *** Error exit code 1
> 
> Stop.
> </snip>
> 
> The attached patch seems to fix it.

Thanks, I'll include it.  Perhaps changing "ha" to "highlight_attr" to
avoid the intermediate variable also works?

-- 
GOD: That is your purpose Arthur ... the Quest for the Holy Grail ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230315170932.4B5E21C0C56%40moolenaar.net.

Raspunde prin e-mail lui