openocd icon indicating copy to clipboard operation
openocd copied to clipboard

fix fatal cmalloc warnings as seen with gcc (SUSE Linux) 14.2.1

Open joba-1 opened this issue 1 year ago • 2 comments

gcc 14 spits out warning error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument This aborts the build due to treating warnings as error. Easy fix is swapping arguments

joba-1 avatar Jan 04 '25 23:01 joba-1

Duplicate of #101 ?

lurch avatar Jan 06 '25 10:01 lurch

as long as you define issue == solution :)

I searched for that error message and did not find the workaround before I fixed it, so I guess a solution would help others not to waste their time.

joba-1 avatar Jan 08 '25 11:01 joba-1