Age | Commit message (Collapse) | Author | Files | Lines |
|
xclipboard.c: In function ‘NewCurrentClip’:
xclipboard.c:384:29: warning: passing argument 1 of ‘NewCurrentClipContents’
discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
384 | NewCurrentClipContents ("", 0);
| ^~
xclipboard.c:77:44: note: expected ‘char *’ but argument is of type
‘const char *’
77 | static void NewCurrentClipContents ( char *data, int len );
| ~~~~~~^~~~
xclipboard.c: In function ‘EraseTextWidget’:
xclipboard.c:420:15: warning: assignment discards ‘const’ qualifier from
pointer target type [-Wdiscarded-qualifiers]
420 | block.ptr = "";
| ^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/merge_requests/4>
|
|
xclipboard.c: In function ‘InsertClipboard’:
xclipboard.c:494:33: warning: cast from function call of type ‘Atom’
{aka ‘long unsigned int’} to non-matching type ‘void *’ [-Wbad-function-cast]
494 | (XtPointer)(XA_COMPOUND_TEXT(d)),
| ^
xclipboard.c: In function ‘LoseSelection’:
xclipboard.c:637:25: warning: cast from function call of type ‘Atom’
{aka ‘long unsigned int’} to non-matching type ‘void *’ [-Wbad-function-cast]
637 | (XtPointer)(XA_UTF8_STRING(d)), CurrentTime);
| ^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/merge_requests/4>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/merge_requests/4>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
xclipboard.c: In function ‘NewCurrentClipContents’:
xclipboard.c:402:28: warning: potential null pointer dereference [-Wnull-dereference]
if (strlen (currentClip->clip) != 0)
~~~~~~~~~~~^~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
xclipboard.c: In function ‘set_button_state’:
xclipboard.c:196:52: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
snprintf (labelString, sizeof(labelString), "%d", IndexCurrentClip ());
^
xclipboard.c:196:5: note: ‘snprintf’ output between 2 and 11 bytes into a destination of size 10
snprintf (labelString, sizeof(labelString), "%d", IndexCurrentClip ());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
xclipboard.c: In function ‘SaveToFile’:
xclipboard.c:313:14: warning: assignment discards ‘const’ qualifier from
pointer target type [-Wdiscarded-qualifiers]
filename = "clipboard";
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Gets rid of 20 out of 37 -Wdiscarded-qualifiers errors from gcc
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: 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>
|
|
xclipboard.c:108:27: warning: implicit conversion changes signedness:
'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
clip->clip = malloc (len + 1);
~~~~~~ ~~~~^~~
xclipboard.c:103:11: warning: implicit conversion loses integer precision:
'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
len = strlen (data);
~ ^~~~~~~~~~~~~
xclipboard.c:331:15: warning: implicit conversion loses integer precision:
'int' to 'Boolean' (aka 'char') [-Wconversion]
success = XawAsciiSaveAsFile (XawTextGetSource (text), filename);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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>
|
|
xcutsel.c:196: warning: declaration of 'state' shadows a global declaration
xcutsel.c:84: warning: shadowed declaration is here
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
This replaces sprintf with XtAsprintf to avoid crashing when creating
various potentially large labels.
https://bugs.launchpad.net/ubuntu/+source/x11-apps/+bug/792642
Signed-off-by: Kees Cook <kees.cook@canonical.com>
Reviewed-by: James Cloos <cloos@jhcloos.com>
[jcristau: added xt >= 1.1 dependency per Alan Coopersmith]
Signed-off-by: Julien Cristau <jcristau@debian.org>
|
|
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=17364
The Accept and Cancel buttons on the Save dialog where just
visible at the bottom of the dialog. Even if you resized
the dialog, the buttons where never fully visible.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Acked-by: Dan Nicholson <dbn.lists@gmail.com>
|
|
Use services provided by XORG_MANPAGE_SECTIONS.
Use standard Makefile for man pages.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Using s/[ \t]*$//
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
This silences an Automake warning.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Actually enables the #ifdef XKB code that commit f16c6dd23a
attempted to enable
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 sttaements under the Automake initialization section.
Add missing AC_CONFIG_SRCDIR
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>
|
|
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
The value of MAN_SUBST is the same for all X.Org packages.
Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS
Enables use of platform appropriate version of sed.
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>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Use "$PKG_CONFIG" rather than hard coded "pkg-config"
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
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.
|
|
This macro aggregate a number of existing macros that sets commmon
X.Org components configuration options. It shields the configuration file from
future changes.
|
|
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.
|
|
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>
|