[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
>tfw accidentally malloc'd sizeof(thing_t*) instead of
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 12
Thread images: 1
File: downtimejpg.jpg (19 KB, 400x290) Image search: [Google]
downtimejpg.jpg
19 KB, 400x290
>tfw accidentally malloc'd sizeof(thing_t*) instead of sizeof(thing_t) and you spent 12 hours to track that down
>>
Last time I malloc'd a pointer my compiler gave me a warning
Did you fall for the -supress-warnings meme
>>
>>55041894
I have -Wall and -Wextra on and nothing is suppressed
>>
>>55041933
Clang or gcc
>>
>>55041947
gcc
>>
>>55041984
>gcc
Use clang (especially for dev builds) , makes life a lot easier
>>
>>55042005
Would it have caught it in this case? I used a lot of void pointers and pointer arithmetic.

Thanks for the tip and I will check it out.
>>
>>55042068
I'd just give a warning so you'll have something to use when you try to work out what went wrong
>>
>>55041847
>malloc
nice dinosaur language you got there pal.
>>
>>55042212
Fuck off Pajeet
>>
>>55042212
Fuck off Pajeet
>>
>>55042212
https://www.youtube.com/watch?v=VjE3NjDdfts

Pajeet pls
Thread replies: 12
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.