Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
xcursorgen.c:169:62: warning: implicit conversion changes signedness:
'int' to 'XcursorPixel' (aka 'unsigned int') [-Wsign-conversion]
p = (alpha << 24) | (red << 16) | (green << 8) | (blue << 0);
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
xcursorgen.c:269:39: warning: implicit conversion changes signedness:
'png_uint_32' (aka 'unsigned int') to 'int' [-Wsign-conversion]
image = XcursorImageCreate(width, height);
~~~~~~~~~~~~~~~~~~ ^~~~~~
xcursorgen.c:269:32: warning: implicit conversion changes signedness:
'png_uint_32' (aka 'unsigned int') to 'int' [-Wsign-conversion]
image = XcursorImageCreate(width, height);
~~~~~~~~~~~~~~~~~~ ^~~~~
xcursorgen.c:280:25: warning: implicit conversion changes signedness:
'int' to 'XcursorDim' (aka 'unsigned int') [-Wsign-conversion]
image->size = list->size;
~ ~~~~~~^~~~
xcursorgen.c:281:25: warning: implicit conversion changes signedness:
'int' to 'XcursorDim' (aka 'unsigned int') [-Wsign-conversion]
image->xhot = list->xhot;
~ ~~~~~~^~~~
xcursorgen.c:282:25: warning: implicit conversion changes signedness:
'int' to 'XcursorDim' (aka 'unsigned int') [-Wsign-conversion]
image->yhot = list->yhot;
~ ~~~~~~^~~~
xcursorgen.c:283:26: warning: implicit conversion changes signedness:
'int' to 'XcursorUInt' (aka 'unsigned int') [-Wsign-conversion]
image->delay = list->delay;
~ ~~~~~~^~~~~
xcursorgen.c:364:35: warning: implicit conversion changes signedness:
'unsigned int' to 'int' [-Wsign-conversion]
.height = height,
^~~~~~
xcursorgen.c:363:24: warning: implicit conversion changes signedness:
'unsigned int' to 'int' [-Wsign-conversion]
.width = width,
^~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
xcursorgen.c:166:19: warning: implicit conversion loses integer precision:
'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion]
red = div_255((unsigned) red * (unsigned) alpha);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xcursorgen.c:167:19: warning: implicit conversion loses integer precision:
'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion]
green = div_255((unsigned) green * (unsigned) alpha);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xcursorgen.c:168:19: warning: implicit conversion loses integer precision:
'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion]
blue = div_255((unsigned) blue * (unsigned) alpha);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Clears clang warning:
xcursorgen.c:152:30: warning: unused parameter 'png' [-Wunused-parameter]
premultiply_data(png_structp png, png_row_infop row_info, png_bytep data)
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
If xcursorgen encounters a PNG file which is larger than 32767 pixels
in width or height, a null pointer dereference occurs because the
return value of XcursorImageCreate is not checked.
The largest possible value is 32767 for libXcursor, which is a hard
coded limit due to a 16 bit integer used (0x7FFF).
Fixes: https://gitlab.freedesktop.org/xorg/app/xcursorgen/issues/1
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
|
|
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
fall-outs, when they contain space.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Syncs the invocation of configure with the one from the server.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
|
|
See http://people.gnome.org/~walters/docs/build-api.txt
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Regroup AC statements under the Autoconf initialization section.
Regroup AM statements under the Automake initialization section.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
As reported by clang:
xcursorgen.c:42:9: warning: padding struct 'struct flist' with 4 bytes to align 'pngfile' [-Wpadded]
char *pngfile;
^
xcursorgen.c:44:17: warning: padding struct 'struct flist' with 4 bytes to align 'next' [-Wpadded]
struct flist *next;
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Also avoids starting at the wrong argument if -image is not the first
flag passed to xcompmgr (though that's not really supported in the
current syntax).
Fixes gcc warning:
xcursorgen.c: In function `main':
xcursorgen.c:394: warning: declaration of 'i' shadows a previous local
xcursorgen.c:377: warning: shadowed declaration is here
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Use services provided by XORG_MANPAGE_SECTIONS.
Use standard Makefile for man pages.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
This silences an Autoconf warning
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now
PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Unrelated to the previous patches, the new value simply reflects
the reality that the minimum level for autoconf to configure
all x.org modules is 2.60 dated June 2006.
ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Tested-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
|
The INSTALL file is added to the tarball by XORG_INSTALL.
Tested-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
|
setjmp(png_ptr->jmpbuf) is depreceated so removed it and changed the
configure.ac version number to accept libpng12 or libpng14
Signed-off-by: Cody Maloney <cmaloney@theoreticalchaos.com>
Tested-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
|
|
Add missing INSTALL file. Use standard GNU file on building tarball
README may have been updated
Remove AUTHORS file as it is empty and no content available yet.
Remove NEWS file as it is empty and no content available yet.
|
|
ChangeLog filename is known to Automake and requires no further
coding in the makefile.
|
|
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
|
|
This is a private build script that should not be distributed
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects
make distcheck and all gcc 4.3 and sparse warnings.
|
|
|