1/// Cast void to memset to ignore its return value
2///
3//# The return of memset and memcpy is never checked and therefore
4//# cast it to void to explicitly ignore while adhering to MISRA-C.
5//
6// Confidence: High
7// Copyright (c) 2017 Intel Corporation
8//
9// SPDX-License-Identifier: Apache-2.0
10
11virtual patch
12
13@depends on patch && !(file in "ext")@
14expression e1,e2,e3;
15@@
16(
17+ (void)
18memset(e1,e2,e3);
19|
20+ (void)
21memcpy(e1,e2,e3);
22)
23