Suppress warnings like the following from clang tidy:
```
../src/boot/addon.c:11:19: error: function 'efi_main' can be made static to enforce internal linkage [misc-use-internal-linkage,-warnings-as-errors]
11 | EFIAPI EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *system_table);
| ^
```
Some warnings are suppressed simply by setting comments to ignore the warning,
some are by making global variables static, or include a suitable header.
16 lines
528 B
C
16 lines
528 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
|
|
#include "efi.h"
|
|
#include "version.h"
|
|
|
|
/* Magic string for recognizing our own binaries */
|
|
DECLARE_NOALLOC_SECTION(".sdmagic", "#### LoaderInfo: systemd-addon " GIT_VERSION " ####");
|
|
|
|
/* This is intended to carry data, not to be executed */
|
|
|
|
// NOLINTNEXTLINE(misc-use-internal-linkage)
|
|
EFIAPI EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *system_table);
|
|
EFIAPI EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *system_table) {
|
|
return EFI_UNSUPPORTED;
|
|
}
|