From a7fc59c70b4b99b64a1c7ac6cb4b5f7e85c8a133 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 7 Apr 2022 14:51:55 +0200 Subject: various: add missing "#pragma once" --- src/basic/missing_syscall_def.h | 1 + src/basic/missing_syscalls.py | 1 + src/boot/efi/xbootldr.h | 1 + src/network/networkd-wiphy.h | 1 + 4 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/basic/missing_syscall_def.h b/src/basic/missing_syscall_def.h index d078bf70df..88df92db61 100644 --- a/src/basic/missing_syscall_def.h +++ b/src/basic/missing_syscall_def.h @@ -4,6 +4,7 @@ * Use 'ninja -C build update-syscall-tables' to download new syscall tables, * and 'ninja -C build update-syscall-header' to regenerate this file. */ +#pragma once /* Note: if this code looks strange, this is because it is derived from the same * template as the per-syscall blocks below. */ diff --git a/src/basic/missing_syscalls.py b/src/basic/missing_syscalls.py index 2694e83b98..83199bb1d7 100644 --- a/src/basic/missing_syscalls.py +++ b/src/basic/missing_syscalls.py @@ -142,6 +142,7 @@ def print_syscall_defs(syscalls, tables, out): * Use 'ninja -C build update-syscall-tables' to download new syscall tables, * and 'ninja -C build update-syscall-header' to regenerate this file. */ +#pragma once ''', file=out) print(ARCH_CHECK, file=out) diff --git a/src/boot/efi/xbootldr.h b/src/boot/efi/xbootldr.h index 4cb370af29..205ce71edf 100644 --- a/src/boot/efi/xbootldr.h +++ b/src/boot/efi/xbootldr.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include diff --git a/src/network/networkd-wiphy.h b/src/network/networkd-wiphy.h index 072a7e5fdd..b40354704b 100644 --- a/src/network/networkd-wiphy.h +++ b/src/network/networkd-wiphy.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include -- cgit v1.2.3