1. 07 May, 2020 26 commits
  2. 07 Apr, 2020 4 commits
  3. 30 Jan, 2020 4 commits
  4. 25 Jan, 2020 2 commits
  5. 09 Jan, 2020 4 commits
    • Ulrich Sibiller's avatar
      compext/Clean.c: fix shadow warnings / scope · 87074622
      Ulrich Sibiller authored
      Clean.c: In function ‘CleanZImage’:
      Clean.c:141:23: warning: declaration of ‘j’ shadows a previous local [-Wshadow=local]
             register int i, j;
                             ^
      Clean.c:88:16: note: shadowed declaration is here
         unsigned int j;
                      ^
      Clean.c: In function ‘CopyAndCleanImage’:
      Clean.c:239:22: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
               register int i;
                            ^
      Clean.c:192:16: note: shadowed declaration is here
         register int i;
                      ^
      Clean.c:324:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
               int i;
                   ^
      Clean.c:192:16: note: shadowed declaration is here
         register int i;
                      ^
      87074622
    • Ulrich Sibiller's avatar
      os: Fix -Wshadow errors · a94e8258
      Ulrich Sibiller authored
        commit 08d0481e299c28b64a0db9bb0782ba2b551028fd
        Author: Keith Packard <keithp@keithp.com>
        Date:   Sun Dec 15 01:12:22 2013 -0800
      
          os: Fix -Wshadow errors
      
          Rename variables to avoid shadowing globals
      Signed-off-by: 's avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: 's avatarEric Anholt <eric@anholt.net>
      a94e8258
    • Ulrich Sibiller's avatar
      mi: fix shadow warnings · 4b8194e1
      Ulrich Sibiller authored
      Based on the following commit. But for mispans.c I think the first
      contained fix is wrong (nested loop with variable i) so I took another
      approach.
      
        commit f02e27e4fcc34413b2051e5a01edc92172fa8612
        Author: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
        Date:   Tue Oct 16 02:16:17 2012 -0500
      
          mi: fix shadow warnings
      
          mibitblt.c: In function 'miGetImage':
          mibitblt.c:617:20: warning: declaration of 'pt' shadows a previous local
          mibitblt.c:609:17: warning: shadowed declaration is here
          mispans.c: In function 'miFillUniqueSpanGroup':
          mispans.c:456:33: warning: declaration of 'i' shadows a previous local
          mispans.c:382:9: warning: shadowed declaration is here
          mispans.c:488:17: warning: declaration of 'i' shadows a previous local
          mispans.c:382:9: warning: shadowed declaration is here
      Signed-off-by: 's avatarYaakov Selkowitz <yselkowitz@users.sourceforge.net>
      Reviewed-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
      
      Fixes these warnings:
      
      mi/mispans.c: fix shadowed vars
      
      mispans.c: In function ‘miFillUniqueSpanGroup’:
      mispans.c:465:12: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
              int i;
                  ^
      mispans.c:387:21: note: shadowed declaration is here
           register int    i;
                           ^
      mispans.c:497:10: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
            int i;
                ^
      mispans.c:387:21: note: shadowed declaration is here
           register int    i;
                           ^
      
      mibitblt.c: In function ‘miGetImage’:
      mibitblt.c:669:13: warning: declaration of ‘pt’ shadows a previous local [-Wshadow=compatible-local]
            xPoint pt;
                   ^~
      mibitblt.c:659:18: note: shadowed declaration is here
           DDXPointRec  pt = {0, 0};
                        ^~
      4b8194e1
    • Ulrich Sibiller's avatar
      _XkbFilterDeviceBtn: move variable declarations to match usage scope · 1a1ace77
      Ulrich Sibiller authored
      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 <alan.coopersmith@oracle.com>
        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: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      Reviewed-by: 's avatarJamey Sharp <jamey@minilop.net>
      Reviewed-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
      1a1ace77