]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
fix warning
authorRudolf Polzer <divverent@xonotic.org>
Tue, 18 Dec 2012 11:33:28 +0000 (12:33 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 18 Dec 2012 11:33:28 +0000 (12:33 +0100)
misc/tools/progs-analyzer.pl

index 7037c8a03a76387d0b28a1dd19de93d70376caee..282b6c1dc453f97a40d4733cdde4b178cc11be4b 100644 (file)
@@ -1000,7 +1000,7 @@ sub detect_constants($)
                        # add missing def
                        if(!($globalflags[$_->{ofs}+$i] & GLOBALFLAG_D))
                        {
-                               print "Missing globaldef for $_->{debugname}[$i] at $_->{ofs}\n";
+                               print "Missing globaldef for a component@{[defined $_->{debugname} ? ' of ' . $_->{debugname} : '']} at $_->{ofs}+$i\n";
                                push @extradefs, {
                                        type => {
                                                saved => 0,