![]() |
|
MISRA C:2012 Rule-8.14: (Required) |
|
||||
![]() | |||||||
Example Code:
#pragma PRQA_MESSAGES_OFF 3406,3440
#include "misra.h"
#include "m3cmex.h"
static void rule_0814a(int16_t n, int16_t * restrict p, const int16_t * restrict q) /* 5137 5137 */
{
while (n > 0)
{
*p++ = *q++ + n;
--n;
}
}
extern int16_t rule_0814(void)
{
static int16_t ia[1000] = {0};
rule_0814a(10, &ia[u16a], &ia[u16b]);
return 1;
}
QAC messages that encompass this guideline:
| 5137 | Use of 'restrict' type qualifier. |
|
||
(c) The Motor Industry Research Association, 2012
|
QA C Source Code Analyser 8.1.2
MISRA C:2012 Compliance Module 1.0 © 2013 Programming Research www.programmingresearch.com |
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |