xf86-video-v4l: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 23 01:45:40 UTC 2024


 configure.ac    |    8 +++++---
 src/Makefile.am |    2 +-
 src/v4l.c       |   15 +++++++++++----
 3 files changed, 17 insertions(+), 8 deletions(-)

New commits:
commit 36ffdb5239a5f29179a0e09c839089e1704031ed
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Tue Jan 16 13:27:19 2024 -0800

    Fix -Wdiscarded-qualifiers warning in AddV4LEnc()
    
    v4l.c: In function 'AddV4LEnc':
    v4l.c:920:16: warning: passing argument 1 of 'sprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      920 |     sprintf(enc->name,"%s-%s",norm,fixname(input));
          |             ~~~^~~~~~
    In file included from v4l.c:20:
    /usr/include/stdio.h:363:38: note: expected 'char * restrict' but argument is of type 'const char *'
      363 | extern int sprintf (char *__restrict __s,
          |                     ~~~~~~~~~~~~~~~~~^~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 7899231c65d68d3b0cef0c5a3a5553d9d566ebdc
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon Jan 15 11:44:21 2024 -0800

    Quiet -Wredundant-decls warnings for strlcat and strlcpy
    
    In file included from /usr/include/xorg/misc.h:119,
                     from /usr/include/xorg/xf86str.h:37,
                     from /usr/include/xorg/xf86.h:44,
                     from v4l.c:25:
    /usr/include/xorg/os.h:595:1: warning: redundant redeclaration of 'strlcpy'
     [-Wredundant-decls]
      595 | strlcpy(char *dst, const char *src, size_t siz);
          | ^~~~~~~
    In file included from v4l.c:19:
    /usr/include/string.h:506:15: note: previous declaration of 'strlcpy' with
     type 'size_t(char * restrict, const char * restrict, size_t)' {aka
     'long unsigned int(char * restrict, const char * restrict, long unsigned int)'}
      506 | extern size_t strlcpy (char *__restrict __dest,
          |               ^~~~~~~
    /usr/include/xorg/os.h:597:1: warning: redundant redeclaration of 'strlcat'
     [-Wredundant-decls]
      597 | strlcat(char *dst, const char *src, size_t siz);
          | ^~~~~~~
    /usr/include/string.h:512:15: note: previous declaration of 'strlcat' with
     type 'size_t(char * restrict, const char * restrict, size_t)' {aka
     'long unsigned int(char * restrict, const char * restrict, long unsigned int)'}
      512 | extern size_t strlcat (char *__restrict __dest,
          |               ^~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 10e0e12fcf9889ffff08244d68bbd8300442e408
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon Jan 15 11:38:33 2024 -0800

    Add X.Org's standard C warning flags to AM_CFLAGS
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 07871d6be3a3e9b80b12bb41ec356a8ac36341ea
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon Jan 15 11:33:07 2024 -0800

    configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
    
    AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008,
    so it's time to rely on it.
    
    Clears autoconf warnings:
    
    configure.ac:45: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
    configure.ac:45: You should run autoupdate.
    aclocal.m4:3551: AC_PROG_LIBTOOL is expanded from...
    configure.ac:45: the top level
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list