Re: [Cocci] Removing the last return statement from a void function

2021-03-18 Thread Julia Lawall
On Thu, 18 Mar 2021, Thomas Adam wrote: > Hello all, > > I've another Coccinelle question I'm hoping you can help me with. The > codebase I'm working on is old, and has some interesting styles which > by themselves probably don't cause any problems, but newer C compilers > are now starting to

[Cocci] Removing the last return statement from a void function

2021-03-18 Thread Thomas Adam
Hello all, I've another Coccinelle question I'm hoping you can help me with. The codebase I'm working on is old, and has some interesting styles which by themselves probably don't cause any problems, but newer C compilers are now starting to flag them. In particular, there seems to be a pattern

Re: [Cocci] Replacing a struct member with a function call

2021-03-18 Thread Thomas Adam
Hi all, Thanks for your help. This is now resolved! Kindly, Thomas On Tue, 16 Mar 2021 at 07:20, Julia Lawall wrote: > > > > On Mon, 15 Mar 2021, Mansour Moufid wrote: > > > On Sun, Mar 14, 2021, 20:43 Thomas Adam wrote: > > Hello, > > > > I can see I was as clear as mud with my e