Author: chromatic
Date: Sat May 26 17:11:49 2007
New Revision: 18648
Modified:
trunk/src/call_list.txt
trunk/tools/build/nativecall.pl
Log:
[NCI] Fixed a build warning for NCI functions that take no arguments and return
an integer.
Also improved the warnings slightly.
Modified: trunk/src/call_list.txt
==============================================================================
--- trunk/src/call_list.txt (original)
+++ trunk/src/call_list.txt Sat May 26 17:11:49 2007
@@ -423,7 +423,7 @@
v t # void mysql_debug(const char *debug)
# --- end mysqlclient library ---
-i v # void function returning int like fork()
+i # void function returning int like fork()
i i3i # POSIX's waitpid
i ibi # POSIX's read
Modified: trunk/tools/build/nativecall.pl
==============================================================================
--- trunk/tools/build/nativecall.pl (original)
+++ trunk/tools/build/nativecall.pl Sat May 26 17:11:49 2007
@@ -204,10 +204,10 @@
my ( $ret, $args ) = split /\s+/, $_;
$args = '' if not defined $args;
- $args =~ s/^v$//
- and warn "Removed deprecated 'v' argument signature on line $. of
$ARGV";
+ warn "Removed deprecated 'v' argument signature on line $. of $ARGV\n"
+ if $args =~ s/^v$//;
- die "Invalid return signature char '$ret' on line $. of $ARGV"
+ die "Invalid return signature char '$ret' on line $. of $ARGV\n"
unless exists $ret_assign{$ret};
if ( ( $seen{"$ret$args"} ||= $. ) != $. ) {