mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-07 15:43:39 +00:00
tests: Ignore gcc -Wmissing-braces on OBJECT initialization
Have gcc ignore -Wmissing-braces to suppress 15 of these types of
warnings:
/home/stefanb/dev/libtpms/tests/object_size.c:13:21: warning: missing braces around initializer [-Wmissing-braces] <--[gcc]
13 | OBJECT object = {
| ^
/home/stefanb/dev/libtpms/tests/object_size.c:13:21: warning: missing braces around initializer [-Wmissing-braces] <--[gcc]
[...]
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
48d52b5e40
commit
fa4f9ab561
@ -8,6 +8,8 @@ int main(void)
|
||||
/* This is supposed to be the OBJECT that requires the most bytes
|
||||
* when it is marshalled: currently an RSA key
|
||||
*/
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-braces"
|
||||
OBJECT object = {
|
||||
.attributes = {
|
||||
.occupied = SET,
|
||||
@ -68,6 +70,7 @@ int main(void)
|
||||
},
|
||||
.seedCompatLevel = 1,
|
||||
};
|
||||
#pragma GCC diagnostics pop
|
||||
static const size_t exp_sizes[7] = {
|
||||
0, 2580, 2580, 2580, 2580, 2580, 2584,
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user