configure.ac | 2 +- src/via_memcpy.c | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-)
New commits: commit d68db24b1461308607aabf8ce4b77a05d08b77c8 Author: Kevin Brace <kevinbr...@gmx.com> Date: Fri Jul 12 19:45:02 2019 -0700 Version bumped to 0.6.190 Signed-off-by: Kevin Brace <kevinbr...@gmx.com> diff --git a/configure.ac b/configure.ac index ace92ec..7bc4aac 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ # Initialize Autoconf AC_PREREQ([2.60]) AC_INIT([xf86-video-openchrome], - [0.6.189], + [0.6.190], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome], [xf86-video-openchrome]) commit 2d19d549d187d88d32d3f629b345a7b369fc9871 Author: Kevin Brace <kevinbr...@gmx.com> Date: Fri Jul 12 19:35:55 2019 -0700 Use const char* within McFuncData struct inside via_memcpy.c Significant reduction of compilation warnings. Signed-off-by: Kevin Brace <kevinbr...@gmx.com> diff --git a/src/via_memcpy.c b/src/via_memcpy.c index 85db0ef..9d98173 100644 --- a/src/via_memcpy.c +++ b/src/via_memcpy.c @@ -459,15 +459,15 @@ enum typedef struct { vidCopyFunc mFunc; - char *mName, **cpuFlag; + const char *mName, **cpuFlag; } McFuncData; -static char *libc_cpuflags[] = { " ", 0 }; -static char *kernel_cpuflags[] = { " ", 0 }; -static char *sse_cpuflags[] = { " sse ", 0 }; -static char *mmx_cpuflags[] = { " mmx ", 0 }; -static char *now_cpuflags[] = { " 3dnow ", 0 }; -static char *mmx2_cpuflags[] = { " mmxext ", " sse ", 0 }; +static const char *libc_cpuflags[] = { " ", 0 }; +static const char *kernel_cpuflags[] = { " ", 0 }; +static const char *sse_cpuflags[] = { " sse ", 0 }; +static const char *mmx_cpuflags[] = { " mmx ", 0 }; +static const char *now_cpuflags[] = { " 3dnow ", 0 }; +static const char *mmx2_cpuflags[] = { " mmxext ", " sse ", 0 }; static McFuncData mcFunctions[totNum] = { {libc_YUV42X, "libc", libc_cpuflags}, @@ -480,7 +480,7 @@ static McFuncData mcFunctions[totNum] = { static int -flagValid(const char *cpuinfo, char *flag) +flagValid(const char *cpuinfo, const char *flag) { const char *flagLoc, *nextProc; int located = 0; @@ -502,7 +502,7 @@ flagValid(const char *cpuinfo, char *flag) static int -cpuValid(const char *cpuinfo, char **flags) +cpuValid(const char *cpuinfo, const char **flags) { for (; *flags != 0; flags++) { if (flagValid(cpuinfo, *flags)) _______________________________________________ openchrome-devel mailing list openchrome-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/openchrome-devel