summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/format/mangling/java_gram.y4
-rw-r--r--src/format/mangling/java_tok.l3
3 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 61c93a9..83cbb83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
13-09-01 Cyrille Bagard <nocbos@gmail.com>
+ * src/format/mangling/java_gram.y:
+ * src/format/mangling/java_tok.l:
+ Remove some compilation warnings.
+
+13-09-01 Cyrille Bagard <nocbos@gmail.com>
+
* src/debug/remgdb/stream.c:
* src/debug/remgdb/stream-int.h:
* src/debug/stream.c:
diff --git a/src/format/mangling/java_gram.y b/src/format/mangling/java_gram.y
index bbd2de3..fa6895c 100644
--- a/src/format/mangling/java_gram.y
+++ b/src/format/mangling/java_gram.y
@@ -43,6 +43,8 @@ static void g_java_dcontext_class_init(GJavaDContextClass *);
/* Initialise une instance de contexte pour décodage. */
static void g_java_dcontext_init(GJavaDContext *);
+/* Affiche un message d'erreur concernant l'analyse. */
+static int java_error(/*const YYLTYPE *yyloc, bool hunt, char **ucode, unsigned char *index, */GJavaDContext *, char *);
@@ -235,7 +237,7 @@ GDemanglingContext *g_java_dcontext_new(void)
* @param msg indications humaines sur l'événement.
* @return 0.
*/
-int java_error(/*const YYLTYPE *yyloc, bool hunt, char **ucode, unsigned char *index, */GJavaDContext *context, char *msg)
+static int java_error(/*const YYLTYPE *yyloc, bool hunt, char **ucode, unsigned char *index, */GJavaDContext *context, char *msg)
{
diff --git a/src/format/mangling/java_tok.l b/src/format/mangling/java_tok.l
index 04180ac..4adf623 100644
--- a/src/format/mangling/java_tok.l
+++ b/src/format/mangling/java_tok.l
@@ -1,6 +1,7 @@
%{
+#include "java.h"
#include "libjavamangling_la-java_gram.h"
%}
@@ -8,6 +9,8 @@
%option noyywrap
%option yylineno
+%option nounput
+%option noinput
%x string