Commit f15f9f84 authored by Rico Tzschichholz's avatar Rico Tzschichholz

Don't warn about unused internal methods which are meant to be visible on DBus

https://bugzilla.gnome.org/show_bug.cgi?id=593902
parent c687bacb
......@@ -170,6 +170,9 @@ public class Vala.FlowAnalyzer : CodeVisitor {
&& !(m is CreationMethod)) {
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 if (m.parent_symbol != null && m.parent_symbol.get_attribute ("DBus") != null
&& m.get_attribute_bool ("DBus", "visible", true)) {
// do not warn if internal member is a visible DBus method
} else {
Report.warning (m.source_reference, "method `%s' never used".printf (m.get_full_name ()));
}
......
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