summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-10-06Only use variable t in MoveThumb() on XAW_ARROW_SCROLLBARSGuillem Jover
Fixes gcc warning: Scrollbar.c: In function 'MoveThumb': Scrollbar.c:1006:16: warning: variable 't' set but not used [-Wunused-but-set-variable] Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Guillem Jover <guillem@hadrons.org>
2011-10-06Remove unused labelGuillem Jover
Fixes gcc warning: laygram.c: In function 'LayYYparse': laygram.y:242:7: warning: label 'unary' defined but not used [-Wunused-label] Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Guillem Jover <guillem@hadrons.org>
2011-10-06Disable unused input and unput lex functionsGuillem Jover
Fixes gcc warnings: laylex.c:1316:17: warning: 'yyunput' defined but not used [-Wunused-function] laylex.c:1357:16: warning: 'input' defined but not used [-Wunused-function] Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Guillem Jover <guillem@hadrons.org>
2011-09-19Fix a couple of unused variable warningsMatt Turner
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-19Fix a couple unused function warningsMatt Turner
Functions were only called inside ifdef blocks, but were defined outside. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-17Add LayYYWrap() prototype to LayYY.hAlan Coopersmith
Fixes gcc warning: laygram.y:259:5: warning: no previous prototype for 'LayYYwrap' Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-17Fix several unused variable warningsAlan Coopersmith
All but one are due to variables defined outside #ifdef's but only used inside #ifdef'ed code blocks. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-17Remove %defines declaration for compatibility with yacc.Matthieu Herrb
The -d flag is used for bison/yacc and has the same effect. Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-08Make WriteToFile take constified argumentsAlan Coopersmith
Fixes compiler warning: "AsciiSrc.c", line 858: warning: argument #2 is incompatible with prototype: prototype: pointer to char : "AsciiSrc.c", line 118 argument : pointer to const char Has to use _XtString (#define char *) instead of String (typedef char *) to correctly be a pointer to const chars instead of a const pointer to chars. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-08Add LayYY.h header for common definitions of lex/yacc created functionsAlan Coopersmith
Ensures all sources use consistent types and provides central place to add _X_HIDDEN tags to avoid exporting these as part of the API/ABI. Also fixes: "laygram.c", line 1363: warning: implicit function declaration: LayYYlex "laygram.c", line 1777: warning: implicit function declaration: LayYYerror Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-08Fix distcheck by changing doc_DATA to dist_doc_DATAAlan Coopersmith
Oops. Helps to include the docs in the tarball if you want to install them. Reported-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-07Update README.XAW3D for X.Org releaseAlan Coopersmith
List X.Org as current maintainers instead of D. J. Hawkey Jr. Replace Imakefile configuration instructions with configure flags Remove sections about building in an old X11R5 or R6 monolithic tree. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-07Distribute & install src/README.XAW3DAlan Coopersmith
The previous maintainer strongly recommended providing this file with the library as the authoritative documentation for the libXaw3d API. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-07Use -p instead of %parser for compatibility with older bison & yaccAlan Coopersmith
The %name-prefix "prefix" syntax was introduced in bison 2.3b and is not supported in older bison and yacc parsers. Without this fix, bison 2.3 (older than 2.3b) gives the cryptic error: .../src/laygram.y:1.14-20: syntax error, unexpected string, expecting = Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Tested-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-04Template.c: use #include <X11/Xaw3d/TemplateP.h>Gaetan Nadon
rather than #include "TemplateP.h". Acked-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-04Add conditional include config.h to source files as done in libXawGaetan Nadon
Expections: TexTr.c, sharedlib.c ans generated lex and yacc C code. XawI18n.h needs HAVE_WCTYPE_H and HAVE_WCHAR_H. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-03Fix build after f28531a33d1f28bc86626b3013ef7857b564647fYaakov Selkowitz
Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Tested-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-01Label: Fix nested extern declaration warningsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Matt Turner <mattst88@gmail.com>
2011-09-01Fix incompatible vfunc pointer warningsYaakov Selkowitz
AsciiSink.c:132:41: warning: initialization from incompatible pointer type AsciiSink.c:135:41: warning: initialization from incompatible pointer type AsciiSink.c:137:41: warning: initialization from incompatible pointer type Vendor.c:199:24: warning: initialization from incompatible pointer type Vendor.c:269:24: warning: initialization from incompatible pointer type Vendor.c:284:24: warning: initialization from incompatible pointer type Viewport.c:143:3: warning: initialization from incompatible pointer type MultiSink.c:160:41: warning: initialization from incompatible pointer type MultiSink.c:162:41: warning: initialization from incompatible pointer type Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Matt Turner <mattst88@gmail.com>
2011-09-01XawIm: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca> Acked-by: Matt Turner <mattst88@gmail.com>
2011-09-01MultiSrc: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca> Acked-by: Matt Turner <mattst88@gmail.com>
2011-09-01MultiSink: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca> Acked-by: Matt Turner <mattst88@gmail.com>
2011-09-01Include Xaw3dP.h using #include <X11/Xaw3d/Xaw3dP.h>Gaetan Nadon
All published Xaw3d header file are included this way. The -I directive to include/X11/Xaw3d is removed which will alert developers not to include header files with quotes unless they are in the /src directory. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-01Rename XAW3D_CFLAGS to XAW3D_CPPFLAGS as it contains preprocessor options onlyGaetan Nadon
This will also prevent confusion as it is not obtained from PKG_CHECK_MODULES but follows its naming convention. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-01Move compiler flags from AM_CPPFLAGS to AM_CFLAGSGaetan Nadon
AM_CPPFLAGS should only contain preprocessor directives like -I -D. The various *_CFLAGS may contain compiler flags as they are obtained from pkg-config Cflags variable. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-01Use AM_YFLAGS and BUILT_SOURCES rather than EXTRA_DISTGaetan Nadon
Automake will handle the distribution of laygram.h http://www.gnu.org/software/automake/manual/automake.html#Yacc-and-Lex http://cgit.freedesktop.org/xorg/app/twm/tree/src/Makefile.am http://cgit.freedesktop.org/xorg/app/xgc/tree/Makefile.am Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31XawInit: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31Xaw3dP: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31Viewport: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31Vendor: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31Tree: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31Toggle: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31Tip: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31ThreeD: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31TextSrc: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31TextSink: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31TextPop: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31TextAction: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31Text: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31StripChart: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31SmeThreeD: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31SmeLine: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31SmeBSB: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31SimpleMenu: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-26Fix ambiguous 'else' warningsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-08-26Sme: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-26Simple: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-26Scrollbar: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-26Repeater: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-26Porthole: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>