diff options
Diffstat (limited to 'tools/d2c/conv')
-rw-r--r-- | tools/d2c/conv/Makefile.am | 2 | ||||
-rw-r--r-- | tools/d2c/conv/manager.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/d2c/conv/Makefile.am b/tools/d2c/conv/Makefile.am index a22d5f7..609def0 100644 --- a/tools/d2c/conv/Makefile.am +++ b/tools/d2c/conv/Makefile.am @@ -6,7 +6,7 @@ BUILT_SOURCES = grammar.h # afin de conserver des noms de fichiers simples, ie sans le nom de la # bibliothèque de sortie en préfixe. -AM_YFLAGS = -v -d -p conv_ +AM_YFLAGS = -v -d -p conv_ -Wno-yacc AM_LFLAGS = -P conv_ -o lex.yy.c --header-file=tokens.h \ -Dyyget_lineno=conv_get_lineno \ diff --git a/tools/d2c/conv/manager.c b/tools/d2c/conv/manager.c index b76e0b7..8322866 100644 --- a/tools/d2c/conv/manager.c +++ b/tools/d2c/conv/manager.c @@ -515,7 +515,7 @@ bool define_conv_func(conv_func *func, int fd, const coding_bits *bits, const co if (optional) { - if (as_raw) + if (as_raw && !func->used_as_op) { fprintf(stderr, "%s can not be optional and used as intermediate value at the same time!\n", func->dest); |