]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/run-cc.pl
Threadengine stuff
[user/henk/code/inspircd.git] / make / run-cc.pl
index 71a921c61e7bab3c441593c6a4ae7abe9b994b12..0b0ac5bad24781dc0fcb9e2e81c0935af394ab08 100755 (executable)
@@ -26,8 +26,10 @@ my $location = "";
 my @msgfilters = (
        [ qr/^(.*) warning: cannot pass objects of non-POD type `(.*)' through `\.\.\.'; call will abort at runtime/ => sub {
                my ($msg, $where, $type) = @_;
+               print $location;
+               $location = "";
                my $errstr = "$where error: cannot pass objects of non-POD type `$type' through `...'\n";
-               if ($type =~ m/::string/) {
+               if ($type =~ m/::(basic_)?string/) {
                        $errstr .= "$where (Did you forget to call c_str()?)\n";
                }
                die $errstr;