This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PC Lint

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.

Parents
  • 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?

Reply
  • 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?

Children
No data