<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/xkb, branch pr/extend_manpage</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://cgit.arctica-project.org/nx-libs/atom?h=pr%2Fextend_manpage</id>
<link rel='self' href='https://cgit.arctica-project.org/nx-libs/atom?h=pr%2Fextend_manpage'/>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/'/>
<updated>2020-05-07T10:55:04+00:00</updated>
<entry>
<title>xkb/xkbUtils.c: add link to bugreport</title>
<updated>2020-05-07T10:55:04+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-14T21:16:32+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=3053d7a80694fefdbbfcc3edfeec80fbfa674127'/>
<id>urn:sha1:3053d7a80694fefdbbfcc3edfeec80fbfa674127</id>
<content type='text'>
The problem we are fixing (or better "working around") here has also
been seen in XQuartz, but no-one has found the reason yet.

Point to bugreport so that anyone stumbling over this in future can
check if there's a better fix and possibly implement that one.
</content>
</entry>
<entry>
<title>_XkbFilterDeviceBtn: move variable declarations to match usage scope</title>
<updated>2020-01-09T23:25:46+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-09T21:50:13+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=1a1ace774f49bccbb4760b4a0c58e56bf46548db'/>
<id>urn:sha1:1a1ace774f49bccbb4760b4a0c58e56bf46548db</id>
<content type='text'>
Fix this warning:

xkbActions.c: In function ‘_XkbFilterDeviceBtn’:
xkbActions.c:1084:6: warning: declaration of ‘button’ shadows a previous local [-Wshadow=compatible-local]
  int button;
      ^~~~~~
xkbActions.c:1044:6: note: shadowed declaration is here
 int  button;
      ^~~~~~

Backport of this xorg-xserver upstream commit:

  commit 41dd7cf673e47ab74c5065b8dbf268b2e5facb64
  Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
  Date:   Mon Dec 12 16:49:34 2011 -0800

    _XkbFilterDeviceBtn: move variable declarations to match usage scope

    The main body of this function is an if { } else if { } pair of blocks.
    Previously there was int button at the top level scope which is used
    only in the first block, and a redeclaration of int button inside the
    second block.   Since there's no overlap in the code paths for the
    two uses of button, move the one from the outer block into the first
    block to help the programmer more quickly determine they are unrelated
    usages, and to silence the gcc warning of:

    xkbActions.c: In function '_XkbFilterDeviceBtn':
    xkbActions.c:999:6: warning: declaration of 'button' shadows a previous local
    xkbActions.c:955:6: warning: shadowed declaration is here

    For consistency, move DeviceIntPtr dev declarations as well that are
    used in the same way.

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Jamey Sharp &lt;jamey@minilop.net&gt;
    Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
</entry>
<entry>
<title>XkbFindSrvLedInfo: remove extraneous name-clashing sli variable</title>
<updated>2020-01-09T23:25:46+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-09T21:44:55+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=914f88a8ab7bbbef3f0cb0674dfa5bd1fbddf050'/>
<id>urn:sha1:914f88a8ab7bbbef3f0cb0674dfa5bd1fbddf050</id>
<content type='text'>
Fix shadow warning:

xkbLEDs.c: In function ‘XkbFindSrvLedInfo’:
xkbLEDs.c:633:19: warning: declaration of ‘sli’ shadows a previous local [-Wshadow=compatible-local]
  XkbSrvLedInfoPtr sli;
                   ^~~
xkbLEDs.c:629:18: note: shadowed declaration is here
 XkbSrvLedInfoPtr sli;
                  ^~~

Backport of this xorg-xserver commit:

  commit d8eb9b5faa2d2c9350bdaffef8749a9cac3c87b8
  Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
  Date:   Mon Dec 12 16:49:34 2011 -0800

    XkbFindSrvLedInfo: remove extraneous name-clashing sli variable

    Variable is already defined outside the outer if statement, and
    there's no need to redefine inside the if statement.

    No point in setting sli before if (dev-&gt;kbdfeed-&gt;xkb_sli==NULL)
    check - if check is true, we immediately set it, if check is false,
    we immediately return without further reference or use of it.

    The one thing we do with it inside the inner if statement is store
    an allocation in it for a brief moment before writing to the final
    destination, which is immediately returned to the caller.

    In short, there's no benefit to the variable at all in this block,
    it just gives the optimizer more code to figure out how to omit.

    Fixes gcc warning:
    xkbLEDs.c: In function 'XkbFindSrvLedInfo':
    xkbLEDs.c:683:19: warning: declaration of 'sli' shadows a previous local
    xkbLEDs.c:679:18: warning: shadowed declaration is here

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Jamey Sharp &lt;jamey@minilop.net&gt;
    Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
</entry>
<entry>
<title>xkb: fix shadow warnings</title>
<updated>2020-01-09T23:25:46+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-09T21:41:53+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=ae180b6b52640512fcf0bf6b05bba3449b409640'/>
<id>urn:sha1:ae180b6b52640512fcf0bf6b05bba3449b409640</id>
<content type='text'>
xkb.c: In function ‘ProcXkbSetCompatMap’:
xkb.c:2601:20: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
  register unsigned i,bit;
                    ^
xkb.c:2529:23: note: shadowed declaration is here
     register unsigned i,bit;
                       ^
xkb.c:2601:22: warning: declaration of ‘bit’ shadows a previous local [-Wshadow=compatible-local]
  register unsigned i,bit;
                      ^~~
xkb.c:2529:25: note: shadowed declaration is here
     register unsigned i,bit;
                         ^~~

Backport of this xorg upstream commit:

  commit 344eea237fc07dedfd733d14f95ed0ad26bb5f81
  Author: Yaakov Selkowitz &lt;yselkowitz@users.sourceforge.net&gt;
  Date:   Tue Oct 16 02:04:34 2012 -0500

    xkb: fix shadow warnings

    Signed-off-by: Yaakov Selkowitz &lt;yselkowitz@users.sourceforge.net&gt;
    Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
</entry>
<entry>
<title>xkbActions.c: fix formatting</title>
<updated>2020-01-05T23:18:44+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-12-03T17:59:11+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=3d77840c17196bc215302461d0433109c3327378'/>
<id>urn:sha1:3d77840c17196bc215302461d0433109c3327378</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xkb: replace NX_TRANS_SOCKET by NXAGENT_SERVER</title>
<updated>2019-09-29T15:10:05+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-07-31T22:13:07+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=7d2a222f2c6b87c7277b50ed89e522b39a495975'/>
<id>urn:sha1:7d2a222f2c6b87c7277b50ed89e522b39a495975</id>
<content type='text'>
This has nothing to do with the transport.
</content>
</entry>
<entry>
<title>rework xkb device private handling</title>
<updated>2019-06-22T14:05:48+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-22T14:03:06+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=3aabc92cf81f20b89dc49e8db3c56ad9fa08481b'/>
<id>urn:sha1:3aabc92cf81f20b89dc49e8db3c56ad9fa08481b</id>
<content type='text'>
We can only free the xkbDevicePrivate because we do not know the
details of any other (possible) extension. So let's limit to that one
private for now and call the new xkbFreePrivates from dix (where such
a function is completely missing).
</content>
</entry>
<entry>
<title>xkb: fix what looks to be a copy-paste error with first vs firstMM</title>
<updated>2019-06-22T09:30:54+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-21T09:22:28+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=5be6d271ba4f4c48d0441cf0ed3d8909a6ffd774'/>
<id>urn:sha1:5be6d271ba4f4c48d0441cf0ed3d8909a6ffd774</id>
<content type='text'>
  commit 758393951233d1b2520cf4cefd33ec4288a3880a
  Author: Dave Airlie &lt;airlied@redhat.com&gt;
  Date:   Wed Sep 12 11:09:40 2018 +1000

    xkb: fix what looks to be a copy-paste error with first vs firstMM

    Pointed out by coverity.

    Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>xkmread.c: fix compiler warning</title>
<updated>2019-06-22T09:30:54+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-21T09:13:46+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=31c3d27ea3d2546beb267ed3cc083e040908e246'/>
<id>urn:sha1:31c3d27ea3d2546beb267ed3cc083e040908e246</id>
<content type='text'>
xkmread.c: In function ‘XkmReadFileSectionName’:
xkmread.c:1181:25: warning: ‘tmpTOC.type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     XkbConfigText(tmpTOC.type,XkbMessage),0);
</content>
</entry>
<entry>
<title>xkb: Silence some compiler warnings</title>
<updated>2019-06-22T09:30:54+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-21T09:01:59+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=813acdd2df24a8e3f44152d90a26f1beef11b38c'/>
<id>urn:sha1:813acdd2df24a8e3f44152d90a26f1beef11b38c</id>
<content type='text'>
  commit 83913de25d35709b3ab7b0ab124b73924145d2dd
  Author: Adam Jackson &lt;ajax@redhat.com&gt;
  Date:   Thu Apr 5 12:59:11 2018 -0400

    xkb: Silence some compiler warnings

    Of the form:

    ../xkb/XKBGAlloc.c: In function ‘SrvXkbAddGeomKeyAlias’:
    ../xkb/XKBGAlloc.c:591:13: warning: ‘strncpy’ specified bound 4 equals destination size [-Wstringop-truncation]
                 strncpy(alias-&gt;real, realStr, XkbKeyNameLength);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    This is intentional; the code that reads from these fields never reads
    more than 4 bytes anyway. Rephrase things in terms of memcpy so that's
    clear. Obviously this is awful but in XKB awful is par.

    Signed-off-by: Adam Jackson &lt;ajax@redhat.com&gt;
    Acked-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
</feed>
