This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Specific Warining supression in CCS version 3.3



Hi All,

Currently we are using CCS version 3.3. We are getting many warnings while compiling the code, though which are not necessary to us.  So, is there any option to suppress specific warnings in CCS or by making the changes in source code?

Example: To suppress QAC warnings we are using the macro ‘#pragma PRQA_MESSAGES_OFF XXX’ in source code, but in compilation warning appearing as unrecognized #pragma. Kindly suggest us how suppress specific warnings in CCS version 3.3.

Thanks & Regards

Venugopal T

  • Hello,

    It is possible to suppress and elevate compiler error/warnings. See the 'Diagnostics' section of the CGT Tips & Tricks presentation (starting slide 28).

    Thanks

    ki

  • Dear All,

    I have used following option to remove the specific warings from CCS build. you can see the option in below figure which is marked by blue colour.

    Regards

    Venugopal T

  •  

     

     

     

    You can suppress and put back default like this.

    #pragma

     

    diag_suppress 190 // WARNING "Enumerated type mixed with another type"

     

     

     

    #pragma diag_default 190 // WARNING "Enumerated type mixed with another type"

    To know the ID of the warning

    Enable this in the project properties, in Diagnostic Options, (in Tool Settings tab).

    Check "Emit diagnostiv identifier numbers (--display_error_number, -pden)

    This will put the ID just before the warning when build your project.