diff options
author | Thomas Haller <thaller@redhat.com> | 2021-06-01 17:48:26 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-06-01 17:54:07 +0200 |
commit | bae22a45d837e76e805f0f411b2d71748e76625e (patch) | |
tree | 99c3a414e8fd3a46d7316b1025c41f280088752d /src | |
parent | dd4cccbe66cd5dbd4a6fb6d1602985a7844ba285 (diff) | |
download | NetworkManager-bae22a45d837e76e805f0f411b2d71748e76625e.tar.gz |
lgtm: suppress lgtm[cpp/duplicate-include-guard] warning in ethtool header
lgtm.com doesn't like this:
Query pack:com.lgtm/cpp-queries
Query ID:cpp/duplicate-include-guard
Using the same include guard macro in more than one header file may
cause unexpected behavior from the compiler.
both for src/libnm-base/nm-ethtool-utils-base.h and
src/libnm-client-public/nm-ethtool-utils.h. But this is intentional,
because these two files are supposed to be identical (but compiled
twice, under different context).
Suppress the warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/libnm-base/nm-ethtool-utils-base.h | 2 | ||||
-rw-r--r-- | src/libnm-client-public/nm-ethtool-utils.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libnm-base/nm-ethtool-utils-base.h b/src/libnm-base/nm-ethtool-utils-base.h index fa9c30715d..3656ed3f91 100644 --- a/src/libnm-base/nm-ethtool-utils-base.h +++ b/src/libnm-base/nm-ethtool-utils-base.h @@ -3,7 +3,7 @@ * Copyright (C) 2018 Red Hat, Inc. */ -#ifndef __NM_ETHTOOL_UTILS_H__ +#ifndef __NM_ETHTOOL_UTILS_H__ /* lgtm[cpp/duplicate-include-guard] */ #define __NM_ETHTOOL_UTILS_H__ G_BEGIN_DECLS diff --git a/src/libnm-client-public/nm-ethtool-utils.h b/src/libnm-client-public/nm-ethtool-utils.h index fa9c30715d..3656ed3f91 100644 --- a/src/libnm-client-public/nm-ethtool-utils.h +++ b/src/libnm-client-public/nm-ethtool-utils.h @@ -3,7 +3,7 @@ * Copyright (C) 2018 Red Hat, Inc. */ -#ifndef __NM_ETHTOOL_UTILS_H__ +#ifndef __NM_ETHTOOL_UTILS_H__ /* lgtm[cpp/duplicate-include-guard] */ #define __NM_ETHTOOL_UTILS_H__ G_BEGIN_DECLS |