/* valacompiler.vala
*
- * Copyright (C) 2006-2010 Jürg Billeter
+ * Copyright (C) 2006-2012 Jürg Billeter
* Copyright (C) 1996-2002, 2004, 2005, 2006 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
var source_file = new SourceFile (context, SourceFileType.FAST, rpath);
context.add_source_file (source_file);
}
+ context.use_fast_vapi = true;
}
if (context.report.get_errors () > 0 || (fatal_warnings && context.report.get_warnings () > 0)) {
/* valacodecontext.vala
*
- * Copyright (C) 2006-2009 Jürg Billeter
+ * Copyright (C) 2006-2012 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
public bool nostdpkg { get; set; }
+ public bool use_fast_vapi { get; set; }
+
/**
* Returns true if the target version of glib is greater than or
* equal to the specified version.
public override void visit_field (Field f) {
if (f.is_internal_symbol () && !f.used) {
- if (!f.is_private_symbol () && context.internal_header_filename != null) {
+ if (!f.is_private_symbol () && (context.internal_header_filename != null || context.use_fast_vapi)) {
// do not warn if internal member may be used outside this compilation unit
} else {
Report.warning (f.source_reference, "field `%s' never used".printf (f.get_full_name ()));
if (m.is_internal_symbol () && !m.used && !m.entry_point
&& !m.overrides && (m.base_interface_method == null || m.base_interface_method == m)
&& !(m is CreationMethod)) {
- if (!m.is_private_symbol () && context.internal_header_filename != null) {
+ if (!m.is_private_symbol () && (context.internal_header_filename != null || context.use_fast_vapi)) {
// do not warn if internal member may be used outside this compilation unit
} else {
Report.warning (m.source_reference, "method `%s' never used".printf (m.get_full_name ()));