]> granicus.if.org Git - re2c/commit
A better way to avoid GCC [-Wreturn-type] false positives.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 10 Aug 2015 16:11:01 +0000 (17:11 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 10 Aug 2015 16:11:01 +0000 (17:11 +0100)
commitd6379090ffebbc9c669f4ed30577ddd4957187ee
tree03d0ce4a8db6cc0a60db6f1c6da5feb7d3b978aa
parentb7132f399219ee898dc91b21f3c5cf7036370760
A better way to avoid GCC [-Wreturn-type] false positives.

Though all enum values are handled in switch, GCC still complains
that 'control reaches end of non-void function'. Adding default
clause helps and it's better than returning some spurious constant.
re2c/src/ir/regexp/encoding/enc.h