westes / flex

The Fast Lexical Analyzer - scanner generator for lexing in C and C++
Other
3.64k stars 537 forks source link

Match `malloc` signature to its use #674

Open r-barnes opened 1 month ago

Mightyjo commented 1 month ago

Hi @r-barnes! That code isn't used by very many folks. What system are you using it on?

westes commented 1 month ago

@r-barnes! can you explain what problem you encountered that prompted you to submit this pr?

r-barnes commented 4 weeks ago

@Mightyjo @westes - I'm using Cent OS9 with the LLVM-15 compiler this was identified by one of the warning flags I have enabled. Regretfully, I don't now recall which one.

Mightyjo commented 4 weeks ago

That's fair. Weird that it was being built on that machine, though. It should have been flagged out during configure since you have a working malloc.

westes commented 2 weeks ago

@r-barnes please let us know what compiler flags triggered this for you. It may be relevant to what is going on. Is this triggered with any scanner or did you need to do something specific to get this to happen? If so, can you post the smallest example scanner so we can understand what the problem is?