summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/warn-unused-result-0.yml
blob: f34fb6ebdc08edae725a2ef5fb7cb7d71a9614c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
functional-type: function
links:
- role: interface-function
  uid: ../if/warn-unused-result
rationale: null
references: []
requirement-type: functional
text: |
  When the code is compiled with the GNU C compiler,
  and the ${../if/warn-unused-result:/name} macro is used as last part
  of a function declaration or attached to a function definition,
  and that function has a return type other than ``void``,
  and the returned value is not used,
  the macro shall cause the compiler to show a compiler warning.
type: requirement