~ctwm/ctwm/trunk

Viewing all changes in revision 685.1.13.

  • Committer: Matthew Fuller
  • Date: 2021-07-13 23:27:31 UTC
  • mto: This revision was merged to the branch mainline in revision 689.
  • Revision ID: fullermd@over-yonder.net-20210713232731-pmm7yuqltn2ip0vj
Work around spurious-ish gcc11 warning.

XSaveContext() is basically just stashing up the pointer for later
XFindContext() calls to retrieve, so it doesn't matter what's in it
(or indeed if it's even a valid pointer, at least 'till we deref it
after XFC()).  But gcc11 doesn't know that, so it gets grumpy about
passing an uninitialized blob in.  Easy enough workaround; just do our
setup before stashing it.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: