LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2011, 05:45 AM   #1
nagarjuna
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Rep: Reputation: 0
Angry Splint-Static tool


Hi,
I am using splint to compile my project.Splint is returnning once it finds errors in my first file.My make file has ten files,how can i get total log of ten files even there is an error in first file. I mean ,splint should not stop checking even if it finds error in first file.Pls some one help me
 
Old 01-04-2011, 06:09 AM   #2
ForzaItalia2006
Member
 
Registered: Dec 2009
Location: Walldorf, Germany
Distribution: (X)Ubuntu, Arch, Gentoo
Posts: 205

Rep: Reputation: 67
Quote:
Originally Posted by nagarjuna View Post
Hi,
I am using splint to compile my project.Splint is returnning once it finds errors in my first file.My make file has ten files,how can i get total log of ten files even there is an error in first file. I mean ,splint should not stop checking even if it finds error in first file.Pls some one help me
Maybe, the -k (keep-going even if errors occured) option is helpful? You could then specifically enable this keep-going setting for your splint run only by

Code:
make -k splint
Andi
 
Old 01-04-2011, 06:49 AM   #3
nagarjuna
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Its not working .

Quote:
Originally Posted by ForzaItalia2006 View Post
Maybe, the -k (keep-going even if errors occured) option is helpful? You could then specifically enable this keep-going setting for your splint run only by

Code:
make -k splint
Andi
Thanks for ur reply, but its not working boss.Is there any other solution.......pls post.
 
Old 01-04-2011, 01:47 PM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
How are you using splint?

I thought it would be used
Code:
splint *.c
rather than with make...
 
Old 01-04-2011, 10:24 PM   #5
nagarjuna
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by Snark1994 View Post
How are you using splint?

I thought it would be used
Code:
splint *.c
rather than with make...
I am using like this:
cc+=-g
OBJ_OPTION=-o $@

cc=splint
CC_FLAGS=$(SPLINT_FLAGS) -DSPLINT_FLAG_ENABLED
OBJ_OPTION=

SPLINT_FLAGS= -quiet -standard +posixlib

In my make file...i have set of c files.As i comment splint stuff it is compiling fine.But when i enable it is giving warnning in first .c and returnning ,without proceeding to further .c files. Now i have a requrement that, splint should display all the warnning in all the .c files of my make file. Please some one help me out.
 
Old 01-06-2011, 10:17 AM   #6
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Try:
Code:
splint *.c -quiet -standard +posixlib
My guess is that your makefile tries to run splint on each file individually, and then halts when it gets errors on the first one...
 
Old 01-06-2011, 10:23 PM   #7
nagarjuna
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Snark1994 View Post
Try:
Code:
splint *.c -quiet -standard +posixlib
My guess is that your makefile tries to run splint on each file individually, and then halts when it gets errors on the first one...
Thank you very much. It worked.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
splint tool rajdiv999 Linux - Newbie 1 11-03-2010 02:23 AM
Splint parse error problem when used pthread rajsun Programming 4 10-07-2010 01:27 AM
[need help]splint clean lswhbcb Programming 2 07-07-2007 11:11 PM
Suse 9.1 and splint ... MattG1981 Linux - Newbie 17 06-12-2004 10:25 PM
Splint: Setting Environment Variables DavidMD Linux - Newbie 3 05-27-2003 01:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration