In our project, we are using atmel microcontroller attiny24A. We are doing static analysis for our single file source code using QAC version 8.0.
The interrupt header file is include in the source file for interrupt usage and we dont get any issue in that
#include <avr/interrupt.h>
But
We are getting the following error in the declaration of ISR function prototype.
ISR(TIM0_COMPA_vect);
^
Err(9:0926) [S] Expected: ) ,.
Functionality wise the code is working fine. So we have no idea what the QAC is expecting whether it misunderstands the ISR or not?
help me out guys...
ISR function prototype generates error message in QAC
Questions and discussions about MISRA not specific to a particular publication
Moderator: david ward
-
- Posts: 1
- Joined: Mon Sep 07, 2015 8:20 am
- Company: HCL
ISR function prototype generates error message in QAC
Post by vignesh081191 » Thu Sep 10, 2015 2:25 pm
Jump to
- MISRA
- ↳ Announcements
- ↳ General Questions
- ↳ MISRA Matters
- MISRA C
- ↳ Announcements
- ↳ MISRA C:2012 guidelines
- ↳ 7.1 The implementation
- ↳ 7.2 Compilation and build
- ↳ 7.3 Requirements traceability
- ↳ 7.4 Code design
- ↳ 8.1 A standard C environment
- ↳ 8.2 Unused code
- ↳ 8.3 Comments
- ↳ 8.4 Character sets and lexical conventions
- ↳ 8.5 Identifers
- ↳ 8.6 Types
- ↳ 8.7 Literals and constants
- ↳ 8.8 Declarations and defnitions
- ↳ 8.9 Initialization
- ↳ 8.10 The essential type model
- ↳ 8.11 Pointer type conversions
- ↳ 8.12 Expressions
- ↳ 8.13 Side effects
- ↳ 8.14 Control statement expressions
- ↳ 8.15 Control flow
- ↳ 8.16 Switch statements
- ↳ 8.17 Functions
- ↳ 8.18 Pointers and arrays
- ↳ 8.19 Overlapping storage
- ↳ 8.20 Preprocessing directives
- ↳ 8.21 Standard libraries
- ↳ 8.22 Resources
- ↳ MISRA C:2004 to MISRA C:2012 migration
- ↳ MISRA-C: 2004 rules
- ↳ 6.1 Environment
- ↳ 6.2 Language Extensions
- ↳ 6.3 Documentation
- ↳ 6.4 Character Sets
- ↳ 6.5 Identifiers
- ↳ 6.6 Types
- ↳ 6.7 Constants
- ↳ 6.8 Declarations and Definitions
- ↳ 6.9 Initialisation
- ↳ 6.10 Arithmetic Type Conversions
- ↳ 6.11 Pointer Type Conversions
- ↳ 6.12 Expressions
- ↳ 6.13 Control Statement Expressions
- ↳ 6.14 Control Flow
- ↳ 6.15 Switch Statements
- ↳ 6.16 Functions
- ↳ 6.17 Pointers and Arrays
- ↳ 6.18 Structures and Unions
- ↳ 6.19 Preprocessing Directives
- ↳ 6.20 Standard Libraries
- ↳ 6.21 Run-time Failures
- ↳ MISRA-C:1998 to MISRA-C:2004 migration
- ↳ MISRA-C:2004 Exemplar Suite
- ↳ General Questions
- MISRA C++
- ↳ C++ Announcements
- ↳ C++ General
- ↳ MISRA C++:2008 rules
- ↳ 6.0 Language independent issues (C++)
- ↳ 6.1 General (C++)
- ↳ 6.2 Lexical conventions (C++)
- ↳ 6.3 Basic concepts (C++)
- ↳ 6.4 Standard conversions (C++)
- ↳ 6.5 Expressions (C++)
- ↳ 6.6 Statements (C++)
- ↳ 6.7 Declarations (C++)
- ↳ 6.8 Declarators (C++)
- ↳ 6.9 Classes (C++)
- ↳ 6.10 Derived classes (C++)
- ↳ 6.11 Member access control (C++)
- ↳ 6.12 Special member functions (C++)
- ↳ 6.14 Templates (C++)
- ↳ 6.15 Exception handling (C++)
- ↳ 6.16 Preprocessing directives (C++)
- ↳ 6.17 Library introduction (C++)
- ↳ 6.18 Language support library (C++)
- ↳ 6.19 Diagnostics library (C++)
- ↳ 6.27 Input/output library (C++)
- MISRA Compliance
- ↳ MISRA Compliance discussions
- Resources
- ↳ MISRA resources
- MISRA SRfP
- ↳ MISRA SRfP Discussions
- MISRA Safety Analysis
- ↳ MISRA SA discussions
- MISRA Guidelines for Automotive Safety Arguments
- ↳ MISRA Safety Arguments discussions
- MISRA Autocode
- ↳ MISRA AC GMG discussions
- ↳ MISRA AC SLSF discussions
- ↳ MISRA AC TL discussions
- ↳ MISRA AC AGC discussions