UpstandingHackers / hammer

Parser combinators for binary formats, in C. Yes, in C. What? Don't look at me like that.
GNU General Public License v2.0
430 stars 40 forks source link

Fix clobbered variable warning in regex.c:run_trace. Fixes #162 #176

Closed thequux closed 7 years ago

thequux commented 7 years ago

This silences the spurious -Wclobbered warning and also fixes a related piece of undefined behaviour that never got warned about because ctx never got reused for anything else.

abiggerhammer commented 7 years ago

We will never, ever disable warnings beyond the scope of one function, but this is okay. Failed build was Travis for some reason never even starting the mono builds.