public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* ECC: Won't somebody PLEASE think of the... test structures.
@ 2020-09-25  1:23 Bret Barkelew
  2020-09-25  1:56 ` Ken Taylor
  0 siblings, 1 reply; 10+ messages in thread
From: Bret Barkelew @ 2020-09-25  1:23 UTC (permalink / raw)
  To: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

ERROR - EFI coding style error
ERROR - *Error code: 5007
ERROR - *There should be no initialization of a variable as part of its declaration
ERROR - *file: //home/corthon/_uefi/edk2_qemu_ci/edk2/MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/VariablePolicyUnitTest.c
ERROR - *Line number: 333
ERROR - *Variable Name: MatchCheckPolicy

EccCheck no likey:
SIMPLE_VARIABLE_POLICY_ENTRY   ValidationPolicy = {
    {
      VARIABLE_POLICY_ENTRY_REVISION,
      sizeof(VARIABLE_POLICY_ENTRY) + sizeof(TEST_VAR_1_NAME),
      sizeof(VARIABLE_POLICY_ENTRY),
      TEST_GUID_1,
      TEST_POLICY_MIN_SIZE_NULL,
      TEST_POLICY_MAX_SIZE_NULL,
      TEST_POLICY_ATTRIBUTES_NULL,
      TEST_POLICY_ATTRIBUTES_NULL,
      VARIABLE_POLICY_TYPE_NO_LOCK
    },
    TEST_VAR_1_NAME
  };

But you can’t init this structure separately without addressing each field.
Can a brother get an override?

- Bret


[-- Attachment #2: Type: text/html, Size: 3086 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-09-28 18:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-25  1:23 ECC: Won't somebody PLEASE think of the... test structures Bret Barkelew
2020-09-25  1:56 ` Ken Taylor
2020-09-25  2:25   ` Bret Barkelew
2020-09-25  2:46     ` Bret Barkelew
2020-09-25  2:48     ` [edk2-devel] " Andrew Fish
2020-09-25  2:57       ` [EXTERNAL] " Bret Barkelew
2020-09-26  2:52         ` [EXTERNAL] " Andrew Fish
2020-09-27  3:40           ` Bret Barkelew
2020-09-28 18:16           ` Laszlo Ersek
2020-09-25  7:31     ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox