From 108be1837b473257fc706dfb82ab34fad7d3b276 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Tue, 4 May 1999 17:21:33 +0000 Subject: [PATCH] changes to get this to build with the -pedanic flag. (when you pass --enable-pedantic to the compiler) --- xpcom/tools/xpidl/xpidl_idl.c | 7 +++++-- xpcom/typelib/xpidl/xpidl_idl.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/xpcom/tools/xpidl/xpidl_idl.c b/xpcom/tools/xpidl/xpidl_idl.c index 53e689092e62..e15e19d93478 100644 --- a/xpcom/tools/xpidl/xpidl_idl.c +++ b/xpcom/tools/xpidl/xpidl_idl.c @@ -222,8 +222,11 @@ input_callback(IDL_input_reason reason, union IDL_input_data *cb_data, * file, we only look for it in the first entry in the include * path, which we assume to be the current directory. */ - IncludePathEntry first_entry = { stack->include_path->directory, - NULL }; + IncludePathEntry first_entry; + + first_entry.directory = stack->include_path->directory; + first_entry.next = NULL; + new_data = new_input_callback_data(cb_data->init.filename, &first_entry); } else { diff --git a/xpcom/typelib/xpidl/xpidl_idl.c b/xpcom/typelib/xpidl/xpidl_idl.c index 53e689092e62..e15e19d93478 100644 --- a/xpcom/typelib/xpidl/xpidl_idl.c +++ b/xpcom/typelib/xpidl/xpidl_idl.c @@ -222,8 +222,11 @@ input_callback(IDL_input_reason reason, union IDL_input_data *cb_data, * file, we only look for it in the first entry in the include * path, which we assume to be the current directory. */ - IncludePathEntry first_entry = { stack->include_path->directory, - NULL }; + IncludePathEntry first_entry; + + first_entry.directory = stack->include_path->directory; + first_entry.next = NULL; + new_data = new_input_callback_data(cb_data->init.filename, &first_entry); } else {