aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-02-28 18:54:37 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-05-01 16:29:22 +0200
commit5c9b0ffbced524f4e8bdc586cf32db28a039cc83 (patch)
tree43f8c16014e7b93e3a3d11081f8c40fda439fe0e /Makefile
parent79d8848e79f0640ffdbcc24ab78eb2bc0bf8d068 (diff)
downloadsparse-dev-5c9b0ffbced524f4e8bdc586cf32db28a039cc83.tar.gz
fix: warn on typedef redefinition
check_duplicates() verifies that symbols are not redefined and warns if they are. However, this function is only called at evaluation-time and then only for symbols corresponding to objects and functions. So, typedefs can be redefined without any kind of diagnostic. Fix this by calling check_duplicates() at parsing time on typedefs. Note: this is C11's semantic or GCC's C89/C99 in non-pedantic mode. Reported-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions