← Back to team overview

kicad-developers team mailing list archive

[PATCH] Fix typo in include guard

 

Hi, first time posting. Trivial patch attached fixing a header guard.

Clang's -Wheader-guard warning caught this.


I apologize for the git-format-patch style patch (might need to pass
`-p1`). I spent about an hour or two trying to find a workable workflow
with bzr but wasn't able to find one. Skimming the archives it seems like
there is discussion about moving to git from bzr; hopefully this can
provide a data point for the discussion (I'd be glad to provide more info
it you're interested about what the main things I ran up against were, how
far I got working with bzr, etc.).

-- Sean Silva
From 76ed95eda3cfbe0ba9da8631766e71895bbb419a Mon Sep 17 00:00:00 2001
From: Sean Silva <chisophugis@xxxxxxxxx>
Date: Sun, 9 Feb 2014 20:25:05 -0500
Subject: [PATCH] Fix typo in include guard

Caught by Clang's `-Wheader-guard`.
---
 pcbnew/hotkeys.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcbnew/hotkeys.h b/pcbnew/hotkeys.h
index 844aeca..6424e71 100644
--- a/pcbnew/hotkeys.h
+++ b/pcbnew/hotkeys.h
@@ -2,7 +2,7 @@
  * @file pcbnew/hotkeys.h
  * Pcbnew hotkeys
  */
-#ifndef _PCBNEW_KOTKEYS_H
+#ifndef _PCBNEW_HOTKEYS_H
 #define _PCBNEW_HOTKEYS_H
 
 #include <hotkeys_basic.h>
-- 
1.8.3.2


Follow ups