mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
databases/rubygem-mysql: fix runtime warnings with ruby 3.2
This commit is contained in:
parent
573270632e
commit
00ad632b72
2 changed files with 8 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= mysql
|
PORTNAME= mysql
|
||||||
PORTVERSION= 2.9.1
|
PORTVERSION= 2.9.1
|
||||||
PORTREVISION= 3
|
PORTREVISION= 4
|
||||||
CATEGORIES= databases rubygems
|
CATEGORIES= databases rubygems
|
||||||
MASTER_SITES= RG
|
MASTER_SITES= RG
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
--- ext/mysql_api/mysql.c.orig 2024-03-11 10:13:55 UTC
|
--- ext/mysql_api/mysql.c.orig 2024-03-11 10:33:12 UTC
|
||||||
+++ ext/mysql_api/mysql.c
|
+++ ext/mysql_api/mysql.c
|
||||||
@@ -170,7 +170,7 @@ static void mysql_raise(MYSQL* m)
|
@@ -170,7 +170,7 @@ static void mysql_raise(MYSQL* m)
|
||||||
VALUE e = rb_exc_new2(eMysql, mysql_error(m));
|
VALUE e = rb_exc_new2(eMysql, mysql_error(m));
|
||||||
|
@ -241,11 +241,16 @@
|
||||||
int i;
|
int i;
|
||||||
int dots = 0;
|
int dots = 0;
|
||||||
const char *lib = mysql_get_client_info();
|
const char *lib = mysql_get_client_info();
|
||||||
@@ -1898,6 +1913,7 @@ void Init_mysql_api(void)
|
@@ -1898,9 +1913,12 @@ void Init_mysql_api(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+#endif
|
+#endif
|
||||||
|
|
||||||
cMysql = rb_define_class("Mysql", rb_cObject);
|
cMysql = rb_define_class("Mysql", rb_cObject);
|
||||||
|
+ rb_undef_alloc_func(cMysql);
|
||||||
cMysqlRes = rb_define_class_under(cMysql, "Result", rb_cObject);
|
cMysqlRes = rb_define_class_under(cMysql, "Result", rb_cObject);
|
||||||
|
+ rb_undef_alloc_func(cMysqlRes);
|
||||||
|
cMysqlField = rb_define_class_under(cMysql, "Field", rb_cObject);
|
||||||
|
#if MYSQL_VERSION_ID >= 40102
|
||||||
|
cMysqlStmt = rb_define_class_under(cMysql, "Stmt", rb_cObject);
|
||||||
|
|
Loading…
Add table
Reference in a new issue