summaryrefslogtreecommitdiff
path: root/src/xkbcomp
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-07-26 22:49:30 +0300
committerRan Benita <ran234@gmail.com>2014-07-26 22:49:30 +0300
commit37cf20c90635c8cce675393ce885376795b553ea (patch)
tree6c793138d03ad49f55811e61ef90ce8dd2d5f34d /src/xkbcomp
parent7ec00933c178942b04f4716882132f7971db7d26 (diff)
downloadlibxkbcommon-37cf20c90635c8cce675393ce885376795b553ea.tar.gz
libxkbcommon-37cf20c90635c8cce675393ce885376795b553ea.tar.bz2
libxkbcommon-37cf20c90635c8cce675393ce885376795b553ea.zip
parser: silence bison "unused value" warnings
Previous commit triggered these for some reason: /home/ran/src/libxkbcommon/src/xkbcomp/parser.y:555.25-33: warning: unused value: $1 [-Wother] CoordList : CoordList COMMA Coord ^^^^^^^^^ Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp')
-rw-r--r--src/xkbcomp/parser.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xkbcomp/parser.y b/src/xkbcomp/parser.y
index 1c212bb..dbb52d1 100644
--- a/src/xkbcomp/parser.y
+++ b/src/xkbcomp/parser.y
@@ -485,7 +485,7 @@ LedNameDecl: INDICATOR Integer EQUALS Expr SEMI
ShapeDecl : SHAPE String OBRACE OutlineList CBRACE SEMI
{ $$ = NULL; }
| SHAPE String OBRACE CoordList CBRACE SEMI
- { $$ = NULL; }
+ { (void) $4; $$ = NULL; }
;
SectionDecl : SECTION String OBRACE SectionBody CBRACE SEMI
@@ -545,17 +545,17 @@ OutlineList : OutlineList COMMA OutlineInList
;
OutlineInList : OBRACE CoordList CBRACE
- { $$ = NULL; }
+ { (void) $2; $$ = NULL; }
| Ident EQUALS OBRACE CoordList CBRACE
- { $$ = NULL; }
+ { (void) $4; $$ = NULL; }
| Ident EQUALS Expr
{ FreeStmt((ParseCommon *) $3); $$ = NULL; }
;
CoordList : CoordList COMMA Coord
- { $$ = NULL; }
+ { (void) $1; (void) $3; $$ = NULL; }
| Coord
- { $$ = NULL; }
+ { (void) $1; $$ = NULL; }
;
Coord : OBRACKET SignedNumber COMMA SignedNumber CBRACKET