summaryrefslogtreecommitdiff
path: root/tools/d2c/conv
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-10-26 09:55:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-10-26 09:55:56 (GMT)
commitd0547bc36bd6ccb84eff128fc6e4f2df034a705a (patch)
treeebe282cc57d35fab473e21dac02c9554abcfc081 /tools/d2c/conv
parentd3039fda0302bb02a9df00425f8b06bce5185049 (diff)
Fixed warnings and errors from the compiler providing architectures support.
Diffstat (limited to 'tools/d2c/conv')
-rw-r--r--tools/d2c/conv/Makefile.am2
-rw-r--r--tools/d2c/conv/manager.c2
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);