Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > malloc call not returning

Thread Tools

malloc call not returning

Peter Nilsson
Posts: n/a
Richard Heathfield <(E-Mail Removed)> wrote:
> Flash Gordon said:
> > ...
> > You are still using the wrong tool for the job. If you
> > want you[r] C code analysed use a tool designed to
> > analyse C code, not a tool designed to compile C++
> > code.

> No, Flash, he's right - if he wants more warnings, using a
> compiler for a different language is a great way to get
> them. Personally, for this purpose I can wholeheartedly
> recommend using a COBOL compiler.

If only you had recommended that to dmr 20 years ago.


Reply With Quote
Norbert Leister
Posts: n/a

I'm using:

gcc -O3 -Wall -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align
-Waggregate-return -Wmissing-prototypes -Wmissing-declarations -Wshadow
-Wstrict-prototypes -c

but I've to confess, that I don't know all params, because I'm just
working in a team who started working on that project before I joined -
and it is my first larger project.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
to malloc or not to malloc? kj C Programming 5 06-05-2009 02:22 PM
to malloc or not to malloc?? Johs32 C Programming 4 03-30-2006 10:03 AM
Malloc/Free - freeing memory allocated by malloc Peter C Programming 34 10-22-2004 10:23 AM
free'ing malloc'd structure with malloc'd members John C Programming 13 08-02-2004 11:45 AM
Re: free'ing malloc'd structure with malloc'd members ravi C Programming 0 07-30-2004 12:42 PM