mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
The newer, kinder C++ does not like it, when the default values
for functions' arguments are specified twice -- in the declaration (sql-mysql.h) and in the definition (sql-mysql.cc). The added patch removes the redundant defaults from the functions' definitions and fixes the build on -current. Submitted by: bento Not Approved by: portmgr -- no approval requested, since port did not build
This commit is contained in:
parent
891fd02c8a
commit
def45225d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71135
23
databases/tcl-Mysql/files/patch-redundant-defaults
Normal file
23
databases/tcl-Mysql/files/patch-redundant-defaults
Normal file
@ -0,0 +1,23 @@
|
||||
--- sql-mysql.cc Wed Jan 12 20:50:03 2000
|
||||
+++ sql-mysql.cc Tue Nov 26 19:48:56 2002
|
||||
@@ -72,5 +72,5 @@
|
||||
// -------------------------------------------------------------
|
||||
int
|
||||
-Sql_mysql::numRows(int resHandle=0) {
|
||||
+Sql_mysql::numRows(int resHandle) {
|
||||
if (!results[resHandle]) { return -1; }
|
||||
return(mysql_num_rows(results[resHandle]));
|
||||
@@ -110,5 +110,5 @@
|
||||
// -------------------------------------------------------------
|
||||
void
|
||||
-Sql_mysql::endquery(int resHandle=0) {
|
||||
+Sql_mysql::endquery(int resHandle) {
|
||||
if (!results[resHandle]) return;
|
||||
mysql_free_result(results[resHandle]);
|
||||
@@ -121,5 +121,5 @@
|
||||
// party.
|
||||
Sql_row *
|
||||
-Sql_mysql::fetchrow(int resHandle=0) {
|
||||
+Sql_mysql::fetchrow(int resHandle) {
|
||||
|
||||
if (!results[resHandle]) {
|
Loading…
Reference in New Issue
Block a user