]> granicus.if.org Git - re2c/commit
Added warinigs: -W, -Werror.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 27 Jul 2015 08:00:33 +0000 (09:00 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 27 Jul 2015 08:00:33 +0000 (09:00 +0100)
commitceafc79c5ce90e97832bbfa61a8ec63f7715bc7d
treec4cb1c432be8d57d2629f9a3bb5736e80e3f8baf
parentc4d1ca6d46167321fc860c99b8b2855e04bc8394
Added warinigs: -W, -Werror.

    -W: enable all warnings
    -Werror: turn all enabled (hereafter) warnings into errors

Specific warnings added by this commit:
    -Wempty-character-class
    -Wempty-rule
    -Wnaked-default

For each warning there are -Wno-, -Werror-, -Wno-error- options.
13 files changed:
re2c/Makefile.am
re2c/bootstrap/src/conf/parse_opts.cc
re2c/src/codegen/prepare_dfa.cc
re2c/src/conf/msg.cc
re2c/src/conf/msg.h
re2c/src/conf/opt.cc
re2c/src/conf/parse_opts.re
re2c/src/conf/warn.cc [new file with mode: 0644]
re2c/src/conf/warn.h [new file with mode: 0644]
re2c/src/globals.h
re2c/src/ir/regexp/regexp.cc
re2c/src/main.cc
re2c/src/parse/scanner.h