mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-11 08:20:30 +01:00
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.
This commit is contained in:
parent
dd4cccbe66
commit
bae22a45d8
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue