Skip to content
Permalink
Browse files

Fix gcc warnings

  • Loading branch information
9EOR9 committed Sep 4, 2019
1 parent f0432c9 commit 9faaea38bc23abc76ca8e449754c38d92361cff2
Showing with 4 additions and 0 deletions.
  1. +2 −0 include/mariadb_stmt.h
  2. +2 −0 include/mysql.h
@@ -38,7 +38,9 @@
{ \
(a)->last_errno= (b);\
strncpy((a)->sqlstate, (c), SQLSTATE_LENGTH);\
(a)->sqlstate[SQLSTATE_LENGTH]= 0;\
strncpy((a)->last_error, (d) ? (d) : ER((b)), MYSQL_ERRMSG_SIZE - 1);\
(a)->last_error[MYSQL_ERRMSG_SIZE - 1]= 0;\
}

#define CLEAR_CLIENT_STMT_ERROR(a) \
@@ -125,7 +125,9 @@ extern unsigned int mariadb_deinitialize_ssl;
{ \
(a)->net.last_errno= (b);\
strncpy((a)->net.sqlstate, (c), SQLSTATE_LENGTH);\
(a)->net.sqlstate[SQLSTATE_LENGTH]= 0;\
strncpy((a)->net.last_error, (d) ? (d) : ER((b)), MYSQL_ERRMSG_SIZE - 1);\
(a)->net.last_error[MYSQL_ERRMSG_SIZE - 1]= 0;\
}

/* For mysql_async.c */

0 comments on commit 9faaea3

Please sign in to comment.
You can’t perform that action at this time.