aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r--gcc/java/lang.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index 0c0b4d6..e3567f5 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -37,6 +37,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "flags.h"
#include "xref.h"
#include "ggc.h"
+#include "diagnostic.h"
struct string_option
{
@@ -50,8 +51,8 @@ static void java_init_options PARAMS ((void));
static int java_decode_option PARAMS ((int, char **));
static void put_decl_string PARAMS ((const char *, int));
static void put_decl_node PARAMS ((tree));
-static void java_dummy_print PARAMS ((const char *));
-static void lang_print_error PARAMS ((const char *));
+static void java_dummy_print PARAMS ((diagnostic_context *, const char *));
+static void lang_print_error PARAMS ((diagnostic_context *, const char *));
static int process_option_with_no PARAMS ((char *,
struct string_option *,
int));
@@ -592,7 +593,8 @@ lang_printable_name_wls (decl, v)
is the value of the hook print_error_function, called from toplev.c. */
static void
-lang_print_error (file)
+lang_print_error (context, file)
+ diagnostic_context *context __attribute__((__unused__));
const char *file;
{
static tree last_error_function_context = NULL_TREE;
@@ -673,7 +675,8 @@ java_init ()
function prototypes. */
static void
-java_dummy_print (s)
+java_dummy_print (c, s)
+ diagnostic_context *c __attribute__ ((__unused__));
const char *s __attribute__ ((__unused__));
{
}