-Wheader-guard

From: <dt71_at_gmx.com>
Date: Mon, 17 Jun 2013 10:52:46 +0200
/usr/src/contrib/wpa/src/utils/base64.h:15:9: warning: 'BASE64_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef BASE64_H
         ^~~~~~~~
/usr/src/contrib/wpa/src/utils/base64.h:16:9: note: 'BASE64_h' is defined here; did you mean 'BASE64_H'?
#define BASE64_h
         ^~~~~~~~
         BASE64_H

and so on.

Patch:

Index: contrib/wpa/src/utils/base64.h
===================================================================
--- contrib/wpa/src/utils/base64.h	(revision 251823)
+++ contrib/wpa/src/utils/base64.h	(working copy)
_at__at_ -13,7 +13,7 _at__at_
   */
  
  #ifndef BASE64_H
-#define BASE64_h
+#define BASE64_H
  
  unsigned char * base64_encode(const unsigned char *src, size_t len,
  			      size_t *out_len);
Index: sys/dev/puc/puc_bfe.h
===================================================================
--- sys/dev/puc/puc_bfe.h	(revision 251823)
+++ sys/dev/puc/puc_bfe.h	(working copy)
_at__at_ -27,7 +27,7 _at__at_
   */
  
  #ifndef _DEV_PUC_BFE_H_
-#define	_DEV_PUC_BFE_H
+#define	_DEV_PUC_BFE_H_
  
  #define	PUC_PCI_BARS	6
  
Index: sys/dev/puc/puc_cfg.h
===================================================================
--- sys/dev/puc/puc_cfg.h	(revision 251823)
+++ sys/dev/puc/puc_cfg.h	(working copy)
_at__at_ -27,7 +27,7 _at__at_
   */
  
  #ifndef _DEV_PUC_CFG_H_
-#define	_DEV_PUC_CFG_H
+#define	_DEV_PUC_CFG_H_
  
  #define	DEFAULT_RCLK	1843200
  
Index: sys/dev/vxge/vxge.h
===================================================================
--- sys/dev/vxge/vxge.h	(revision 251823)
+++ sys/dev/vxge/vxge.h	(working copy)
_at__at_ -31,7 +31,7 _at__at_
  /*$FreeBSD$*/
  
  #ifndef	_VXGE_H_
-#define	__VXGE_H_
+#define	_VXGE_H_
  
  #include <dev/vxge/vxgehal/vxgehal.h>
  #include <dev/vxge/vxge-osdep.h>
Index: usr.bin/csup/updater.h
===================================================================
--- usr.bin/csup/updater.h	(revision 251823)
+++ usr.bin/csup/updater.h	(working copy)
_at__at_ -26,7 +26,7 _at__at_
   * $FreeBSD$
   */
  #ifndef _UPDATER_H_
-#define _UPDATER_H
+#define _UPDATER_H_
  
  void	*updater(void *);
  
Index: usr.bin/sort/vsort.h
===================================================================
--- usr.bin/sort/vsort.h	(revision 251823)
+++ usr.bin/sort/vsort.h	(working copy)
_at__at_ -28,7 +28,7 _at__at_
   */
  
  #if !defined(__VSORT_H__)
-#define _VSORT_H__
+#define __VSORT_H__
  
  #include "bwstring.h"
  
Received on Mon Jun 17 2013 - 06:53:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:38 UTC