ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
How to write a make file with splint ,in a way that it should not stop compiling when there are errors in .c files.
for example I have 3 files x.c , y.c and z.c in my make. I am making these files with splint in my make file. As I make, splint is returnning only x.c file warnnings and not proceding with y.c and z.c.
Please some one tell me how can i make splint to continue checking with all the files even there are warnnings in intermediate files.
I want log for all the .c files in my make file.
????
you WANT it to keep trying to run even WITH a fetal error
why not set the warning level
-01 , -02 , -03 , -04, ...
Hi John,
There are no errors in the code. Only warnnings.If I compile with gcc all the files are getting compiled.When I use SPLINT,it is giving warnnings for only the first file.What I want is: Splint should not stop with first file.It should proceed and should give warnnings for all the files.
Q: Could you please post a bit of your makefile?
Please be sure to include any pertinent variables you might be setting (for example, optimization level, or command-line options).
Q: Could you please post a bit of your makefile?
Please be sure to include any pertinent variables you might be setting (for example, optimization level, or command-line options).
This is how I am doing. If I comment last 4 lines i.e, splint part its compiling fine. If i uncomment them (splint part) splint is giving only warnning of the first file in Make hierarchy. Its returnning like " Finished checking --- 12 code warnnings." and Error 1. Its stopping with the first file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.