From: DaanDeMeyer Date: Thu, 1 Jan 2026 20:01:39 +0000 (+0100) Subject: tree-wide: Drop NOLINTNEXTLINE comments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46e3fef1a803b8a6f567d09136aaf01e715944dc;p=thirdparty%2Fsystemd.git tree-wide: Drop NOLINTNEXTLINE comments Not needed anymore after recent refactoring. --- diff --git a/src/basic/cleanup-util.h b/src/basic/cleanup-util.h index 4d6466e03ff..9fd48dbf297 100644 --- a/src/basic/cleanup-util.h +++ b/src/basic/cleanup-util.h @@ -28,7 +28,6 @@ typedef void* (*mfree_func_t)(void *p); }) #define _DEFINE_TRIVIAL_REF_FUNC(type, name, scope) \ - /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \ scope type *name##_ref(type *p) { \ if (!p) \ return NULL; \ @@ -43,7 +42,6 @@ typedef void* (*mfree_func_t)(void *p); } #define _DEFINE_TRIVIAL_UNREF_FUNC(type, name, free_func, scope) \ - /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \ scope type *name##_unref(type *p) { \ if (!p) \ return NULL; \ diff --git a/src/basic/string-table.h b/src/basic/string-table.h index 1a2a6005022..6e7038074ba 100644 --- a/src/basic/string-table.h +++ b/src/basic/string-table.h @@ -15,7 +15,6 @@ ssize_t string_table_lookup_from_string_fallback(const char * const *table, size /* For basic lookup tables with strictly enumerated entries */ #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name, type, scope) \ - /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \ scope const char* name##_to_string(type i) { \ return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ } @@ -31,7 +30,6 @@ ssize_t string_table_lookup_from_string_fallback(const char * const *table, size } #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING_FALLBACK(name, type, max, scope) \ - /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \ scope int name##_to_string_alloc(type i, char **ret) { \ return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \ } diff --git a/src/boot/efi-string-table.h b/src/boot/efi-string-table.h index ba2a0d365e1..9e142aa6ccc 100644 --- a/src/boot/efi-string-table.h +++ b/src/boot/efi-string-table.h @@ -5,7 +5,6 @@ #include "macro-fundamental.h" #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type,scope) \ - /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \ scope const char* name##_to_string(type i) { \ assert(i >= 0 && i < (type) ELEMENTSOF(name##_table)); \ return name##_table[i]; \ diff --git a/src/libsystemd/sd-netlink/netlink-message-rtnl.c b/src/libsystemd/sd-netlink/netlink-message-rtnl.c index 4883614297b..40f4560e8de 100644 --- a/src/libsystemd/sd-netlink/netlink-message-rtnl.c +++ b/src/libsystemd/sd-netlink/netlink-message-rtnl.c @@ -55,7 +55,6 @@ static bool rtnl_message_type_is_nsid(uint16_t type) { } #define DEFINE_RTNL_MESSAGE_SETTER(class, header_type, element, name, value_type) \ - /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \ int sd_rtnl_message_##class##_set_##name(sd_netlink_message *m, value_type value) { \ assert_return(m, -EINVAL); \ assert_return(m->hdr, -EINVAL); \ @@ -67,7 +66,6 @@ static bool rtnl_message_type_is_nsid(uint16_t type) { } #define DEFINE_RTNL_MESSAGE_PREFIXLEN_SETTER(class, header_type, family_element, element, name, value_type) \ - /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \ int sd_rtnl_message_##class##_set_##name(sd_netlink_message *m, value_type value) { \ assert_return(m, -EINVAL); \ assert_return(m->hdr, -EINVAL); \