[
https://issues.apache.org/jira/browse/TS-2000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13699873#comment-13699873
]
Igor Galić commented on TS-2000:
--------------------------------
proposed patch:
{code}
diff --git mgmt/utils/MgmtSchema.h mgmt/utils/MgmtSchema.h
index fc6e4ee..77f591f 100644
--- mgmt/utils/MgmtSchema.h
+++ mgmt/utils/MgmtSchema.h
@@ -22,7 +22,7 @@
*/
#ifndef __MGMT_SCHEMA_
-#define _MGMT_SCHEMA_
+#define __MGMT_SCHEMA_
/****************************************************************************
*
@@ -54,4 +54,4 @@
bool validateRecordsConfig(XMLNode * node);
bool validateNode(XMLNode * node);
-#endif // _MGMT_SCHEMA
+#endif // __MGMT_SCHEMA
{code}
> clang complaint: '_MGMT_SCHEMA_' is defined here; did you mean
> '__MGMT_SCHEMA_'?
> --------------------------------------------------------------------------------
>
> Key: TS-2000
> URL: https://issues.apache.org/jira/browse/TS-2000
> Project: Traffic Server
> Issue Type: Bug
> Reporter: Igor Galić
>
> {code}
> CXX libutils_lm_a-MgmtSchema.o
> In file included from MgmtSchema.cc:25:
> ./MgmtSchema.h:24:9: error: '__MGMT_SCHEMA_' is used as a header guard here,
> followed by #define of a different macro [-Werror,-Wheader-guard]
> #ifndef __MGMT_SCHEMA_
> ^~~~~~~~~~~~~~
> ./MgmtSchema.h:25:9: note: '_MGMT_SCHEMA_' is defined here; did you mean
> '__MGMT_SCHEMA_'?
> #define _MGMT_SCHEMA_
> ^~~~~~~~~~~~~
> __MGMT_SCHEMA_
> 1 error generated.
> make[2]: *** [libutils_lm_a-MgmtSchema.o] Error 1
> make[2]: Leaving directory `/home/igalic/src/asf/trafficserver/mgmt/utils'
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira