Commit ca77cc7f authored by npzacs's avatar npzacs Committed by Ano Nymous
Browse files

Do not export internal symbols from generated parser/lexer

parent f60f46da
????-??-??:
- Do not export internal symbols from generated parser/lexer
- Do not distribute generated parser files
- Check for libgpg-error. Link against it when needed.
- Distribute README.txt
......
......@@ -20,12 +20,17 @@
#include "keydbcfg-parser.h"
#define YY_NO_UNISTD_H
/* Disable some warnings triggered by generated scanner */
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wredundant-decls"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC visibility push(hidden)
#endif
int isatty(int i) { return 0; }
static char *trim_string(const char *string);
%}
/* Options to generate reentrant lexer that's POSIX lex compatible. The
......
......@@ -30,6 +30,7 @@
#pragma GCC diagnostic ignored "-Wredundant-decls"
#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC visibility push(hidden)
#endif
/* Fix some warnings trigger by -Wundef which can't be ignored */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment