How to suppress Printf related errors from QA-C Analyser?

0 votes
asked by
edited by

1 Answer

0 votes
No avatar answered by (193k points)

/*
 *
 * Piece of code that has a fall through that must be suppressed
 *
 * QAC APPLY RELATIVE
 *
 */
      void jump( int location )
      {
        switch( location )
        {
            case 2:
            {
                printf("bye ");
            }
            /* fall through, QAC EXPECT 2003 */
            case 1:     
            {
                printf("bye ");
                break;
            }
            default:
            {
                printf("ERROR);
                break;
            }
        }

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...