]> granicus.if.org Git - re2c/commit
Don't use '-Werror-nondeterministic-tags' with '-T, --tags'.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 11 May 2016 15:49:59 +0000 (16:49 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 11 May 2016 15:49:59 +0000 (16:49 +0100)
commit1224f5b8cb984d53fcd27fc2a0d906e0fec8025b
tree08e10f66f7ffbb138903f218b4a66afcc8b1d137
parent40bf6067dafb135b3425c26dae390b064e3443ef
Don't use '-Werror-nondeterministic-tags' with '-T, --tags'.

If tags are explicitly enabled, re2c should always fail with error
on nondeterministic tags. There's no good in '-Werror-nondeterministic-tags'
diagnostic --- the user cannot reset it anyway.

This commit fixes unsuccessful attempt 2bfe75d57c71c7102dd6e7b4e5f7139411c7c080
"Restore user warnings after temporarily enforcing a warning.", which
resulted in hiding tag errors if '-Wnondeterministic-tags' is not set.
re2c/src/conf/warn.cc
re2c/test/tags/nondet_alt1.--tags.c
re2c/test/tags/nondet_alt2.--tags.c
re2c/test/tags/nondet_cat1.--tags.c
re2c/test/tags/nondet_cat2.c
re2c/test/tags/nondet_cat4.--tags.c
re2c/test/tags/nondet_iter.--tags.c