summaryrefslogtreecommitdiff
path: root/src/libnm-client-public/nm-ethtool-utils.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-06-01 17:48:26 +0200
committerThomas Haller <thaller@redhat.com>2021-06-01 17:54:07 +0200
commitbae22a45d837e76e805f0f411b2d71748e76625e (patch)
tree99c3a414e8fd3a46d7316b1025c41f280088752d /src/libnm-client-public/nm-ethtool-utils.h
parentdd4cccbe66cd5dbd4a6fb6d1602985a7844ba285 (diff)
downloadNetworkManager-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/libnm-client-public/nm-ethtool-utils.h')
-rw-r--r--src/libnm-client-public/nm-ethtool-utils.h2
1 files changed, 1 insertions, 1 deletions
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