[gtk-doc] fixxref: hide one more missing link warning



commit cc577523f834483bceaa6a7b4f0ec44601f854c6
Author: Stefan Kost <ensonic users sf net>
Date:   Fri Apr 22 16:35:06 2011 -0400

    fixxref: hide one more missing link warning

 gtkdoc-fixxref.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in
index 11de642..9c89719 100755
--- a/gtkdoc-fixxref.in
+++ b/gtkdoc-fixxref.in
@@ -373,6 +373,8 @@ sub MakeXRef {
         # if it's a 'type', don't warn if it starts with lowercase
         # - gnome coding style would use CamelCase
         $warn = 0 if ($text =~ m/ class=\"type\"/ && ($id =~ m/^[a-z]/));
+        # don't warn for self links
+        $warn = 0 if ($text eq $id);
 
         if ($warn == 1) {
           &LogWarning ($file, $line, "no link for: '$id' -> ($text).");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]