We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, 1.I activate MISRA checking during the configuration. I want to turn off one rule of MISRA ( rule 92 ).I added in the "option.lnt" file the following lines: -esym(961,undef) -esym(961,92) -e961 But error 92 of MISRA appear even after this modifications. I don't know why? The error message is: Note 961:Violates MISRA Advisory Rule 92,use of'#undef'is discouraged. 2.I tried to recuper all errors messages in a file, I tried as Chris said, the following lines in the "options.lnt"file: -os(lintout.txt) But there is nothing! Any ideas appreciated,thanks en français: Bonjour, 1.j'ai activé la vérification selon les règles MISRA pendant la configuration. Je voudrais maintenant que certaines règles ne soient pas vérifier. Lorsque dans mon projet,j'exécute PC Lint, l'erreur 92 de la règle MISRA apparait. J'ai essayé d'ajouter les lignes suivantes dans le fichier "options.lnt": -esym(961,undef) -esym(961,92) -e961 Mais rien a faire, cette erreur apparait toujours. Le message d'erreur est le suivant: Note 961:Violates MISRA Advisory Rule 92,use of'#undef'is discouraged. 2.Par ailleurs,je voudrais récupérer les messages d'erreurs qui s'affichent sur la fenêtre build de keil dans un fichier, j'ai fait comme Chris me la conseillé, j'ai rajouté la ligne suivante dans le fichier "options.lnt": -os(lintout.txt) mais rien à faire non plus, je ne récupère rien! merci.
Are you sure that lint is processing your options.lnt file? The options you describe seem correct to me, except for the first one (-esym(961,undef)). -esym(961,92) should suppress the one rule, and -e961 should suppress all MISRA advisory rules. You generally need to specify at least one .lnt file on the command line, and perhaps some search paths with the -i option, so that lint can find your configuration files. For example, in my editor I have the line: c:\lint\lint-nt +v -u -ic:\lint std.lnt env-cw6.lnt "%b%e" which invokes lint, and tells it to look in c:\lint for .lnt files, and then tells it to process std.lnt. Std.lnt has some other options, including finding and processing my per-project .lnt files. Try turning on the verbosity options to trace the lint processing. Perhaps a better place for PC-Lint support would be the Gimpel Software website: http://www.gimpel.com/discussion.cfm?categoryid=0 Oh, I see you already asked over there! :)
for turn off some Misra rules, I tried at first the following lines in the options.lnt file: -esym(961,13) // Suppress Misra Rule 13(Advisory) -esym(960,111) // Suppress Misra Rule 11(Required) But these options do nothing,Error messages still appear. But if tried following lines: -e46 // Suppress error 46:MISRA Rule 111 -e970 // Suppress error 970:Misra Rule 13 It work, there are no error! Why? Anybody can help me?