Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

did you mean 'GLYR_H'? #99

Open
hboetes opened this issue Jun 19, 2020 · 0 comments
Open

did you mean 'GLYR_H'? #99

hboetes opened this issue Jun 19, 2020 · 0 comments

Comments

@hboetes
Copy link

hboetes commented Jun 19, 2020

A no brainer:

In file included from /usr/pkgmk/work/glyrc/src/glyrc/src/glyrc/autohelp.c:23:         
/usr/pkgmk/work/glyrc/src/glyrc/src/glyrc/../../lib/glyr.h:20:9: warning: 'GLYR_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef GLYR_H                                                                         
        ^~~~~~                                                                         
/usr/pkgmk/work/glyrc/src/glyrc/src/glyrc/../../lib/glyr.h:21:9: note: 'GLYR_GLYR_H' is defined here; did you mean 'GLYR_H'?
#define GLYR_GLYR_H                                                                    
        ^~~~~~~~~~~                                                                                                                                                           
        GLYR_H                                                                                                                                                                
1 warning generated.                                                                   

This diff fixes that problem

diff --git a/lib/glyr.h b/lib/glyr.h
index 7416c38..2d06309 100644
--- a/lib/glyr.h
+++ b/lib/glyr.h
@@ -18,7 +18,7 @@
 * along with glyr. If not, see <http://www.gnu.org/licenses/>.
 **************************************************************/
 #ifndef GLYR_H
-#define GLYR_GLYR_H
+#define GLYR_H
 
 /**
  * SECTION:glyr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant