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:
@@ -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
|
||||
|
Reference in New Issue
Block a user