summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-03editres 1.0.9HEADeditres-1.0.9masterAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-09-06fix const errorPeter Radisson
missing const causes 'conflicting type' error at initialisation and aborted compilation.
2023-04-07Fix shadowing boxWalter Harms
widgets.c: In function ‘CreateResourceBoxWidgets’: widgets.c:473:18: warning: declaration of ‘box’ shadows a global declaration [-Wshadow] Widget pane, box, button, viewport, pane_child; rename box to rbox
2023-04-07fix initialization discards constWalter Harms
FIX warnings like: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] {"debug", "Debug", XtRBoolean, sizeof(Boolean),
2023-04-07stop const warningsWalter Harms
fix passing argument 1 of ‘RebuildMenusAndLabel’ discards ‘const’ qualifier from pointer target type only user is in comm.c
2023-04-07stop const warningsWalter Harms
most warnings occur because XtSetArg() needs (String) aka char * and the "string" is const char * these days.
2023-04-07stop const warningsWalter Harms
The warning occurs because XtSetArg() needs (String) aka char * and the "string" is const char * these days.
2023-04-07stop const warningsWalter Harms
The warning occurs because XtSetArg() needs (String) aka char * and the "string" is const char * these days.
2023-04-07stop const warningsWalter Harms
The warning occurs because XtSetArg() needs (String) aka char * and the "string" is const char * these days.
2023-04-07FIX some const warningsWalter Harms
make type const char * to avoid warning
2023-04-07FIX const warningWalter Harms
getting a bunch of warnings make i had to see the import ones. So reduce the warnings by adding a few "const" no problem for internals. For externals function add some casts.
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-06List which options were unrecognized before printing usage messageAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-06Add -help and -version optionsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-06Re-enable code to use XKB BellsAlan Coopersmith
Enabled by default, use ./configure --without-xkb to disable. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-06Ensure all *.c files include config.h before any other headersAlan Coopersmith
Makes sure that any flags set in config.h that affect system headers are applied equally across all source files. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03editres 1.0.8editres-1.0.8Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-03Build xz tarballs instead of bzip2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-03gitlab CI: add a basic build testAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-03-27Add const to silence warningMatt Turner
widgets.c:817:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] Signed-off-by: Matt Turner <mattst88@gmail.com>
2019-06-02Clear -Wredundant-decls warnings from gcc 7.3Alan Coopersmith
comm.c:55:15: warning: redundant redeclaration of ‘CM_entries’ [-Wredundant-decls] extern Widget CM_entries[NUM_CM_ENTRIES], TM_entries[NUM_TM_ENTRIES]; ^~~~~~~~~~ In file included from comm.c:46:0: editresP.h:339:15: note: previous declaration of ‘CM_entries’ was here extern Widget CM_entries[NUM_CM_ENTRIES]; ^~~~~~~~~~ comm.c:55:43: warning: redundant redeclaration of ‘TM_entries’ [-Wredundant-decls] extern Widget CM_entries[NUM_CM_ENTRIES], TM_entries[NUM_TM_ENTRIES]; ^~~~~~~~~~ In file included from comm.c:46:0: editresP.h:343:15: note: previous declaration of ‘TM_entries’ was here extern Widget TM_entries[NUM_TM_ENTRIES]; ^~~~~~~~~~ handler.c:502:16: warning: redundant redeclaration of ‘do_get_values’ [-Wredundant-decls] extern Boolean do_get_values; ^~~~~~~~~~~~~ In file included from handler.c:40:0: editresP.h:334:16: note: previous declaration of ‘do_get_values’ was here extern Boolean do_get_values; ^~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-06-02Clear 208 out of 210 -Wdiscarded-qualifiers warnings from gcc 7.3Alan Coopersmith
Depends on building with a libXt version that defines String as a const char * if _CONST_X_STRING is defined. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-03-04editres 1.0.7editres-1.0.7Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
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>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer
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>
2016-01-01Add intro to editres to READMEAlan Coopersmith
Mostly copied from editres man page Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-09Fix -Wmissing-noreturn warningsAlan Coopersmith
editres.c:140:1: warning: function 'Syntax' could be declared with attribute 'noreturn' [-Wmissing-noreturn] handler.c:65:1: warning: function 'Quit' could be declared with attribute 'noreturn' [-Wmissing-noreturn] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-09Strip trailing whitespaceAlan Coopersmith
'git diff -w' shows no changes for this commit Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-09Fix -Wsign-compare warningsAlan Coopersmith
actions.c:291:21: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for ( i = 0 ; i < num_table; i++ ) ~ ^ ~~~~~~~~~ actions.c:299:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < num_table; ) { ~ ^ ~~~~~~~~~ actions.c:302:8: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] if (i == (num_table - 1)) ~ ^ ~~~~~~~~~~~~~ actions.c:304:13: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] else if (i < num_table) ~ ^ ~~~~~~~~~ geometry.c:150:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_nodes; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~ geometry.c:380:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_flash_widgets; i++) { ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ geometry.c:401:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_flash_widgets; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ geometry.c:423:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_flash_widgets; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ geometry.c:428:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_flash_widgets; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ handler.c:475:13: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] if (len > malloc_size) { ~~~ ^ ~~~~~~~~~~~ handler.c:476:58: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] malloc_string = XtRealloc(malloc_string, sizeof(char) * len); ~ ^~~ handler.c:477:16: warning: implicit conversion changes signedness: 'int' to 'Cardinal' (aka 'unsigned int') [-Wsign-conversion] malloc_size = len; ~ ^~~ utils.c:167:37: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (node = top_node, i = 1 ; i < number; i++) { ~ ^ ~~~~~~ utils.c:170:16: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (j = 0; j < node->num_children; j++) { ~ ^ ~~~~~~~~~~~~~~~~~~ utils.c:215:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) { ~ ^ ~~~~~~~~~~~~~~~~~~ utils.c:787:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < top_node->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~ wtree.c:129:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < top->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~ wtree.c:194:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < info->num_nodes; i++) { ~ ^ ~~~~~~~~~~~~~~~ wtree.c:216:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < info->num_nodes; i++) ~ ^ ~~~~~~~~~~~~~~~ wtree.c:270:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < top->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~ wtree.c:339:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < num_active_nodes; i++) ~ ^ ~~~~~~~~~~~~~~~~ wtree.c:386:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~~ wtree.c:446:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~~ wtree.c:478:16: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) { ~ ^ ~~~~~~~~~~~~~~~~~~ wtree.c:607:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_nodes; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~ wtree.c:686:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-09Replace remaining sprintf calls with snprintfAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-09Replace XtMalloc+sprintf pair with XtAsprintf callAlan Coopersmith
Raises required version of libXt to >= 1.0.99.1 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01configure: Drop AM_MAINTAINER_MODEAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-06-06Avoid a spurious warning during XML upconversion.Eric S. Raymond
2013-01-19config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith
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>
2013-01-12editres 1.0.6editres-1.0.6Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-12-28Remove Xorg/XFree86 CVS/RCS id tagsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: replace hard coded man page section with substitution stringsGaetan Nadon
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon
This silences an Autoconf warning
2011-01-12config: replace deprecated AC_HELP_STRING with AS_HELP_STRINGGaetan Nadon
This silences an Automake warning. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-30editres 1.0.5editres-1.0.5Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-30config: Remove unnecessary calls from configure.acAlan Coopersmith
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-30config: upgrade to util-macros 1.8 for additional man page supportAlan Coopersmith
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 The existing statement can now be removed from the configuration file. Use automake provided $(AM_V_GEN) and XORG_DEFAULT_OPTIONS provided $(SED) Enables silent rule and use platform appropriate version of sed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-30config: update AC_PREREQ statement to 2.60Gaetan Nadon
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>