Skip to content

Commit

Permalink
Few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rahim-kanji committed Dec 29, 2023
1 parent a9047c6 commit e822084
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion deps/mariadb-client-library/cmakelists.txt.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git CMakeLists.txt CMakeLists.txt
index d7150b4d..86c4dc6c 100644
index d7150b4d..ff32e2f2 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -286,7 +286,7 @@ ELSEIF()
Expand All @@ -11,3 +11,12 @@ index d7150b4d..86c4dc6c 100644
ENDIF()


@@ -405,7 +405,7 @@ IF ((NOT WIN32) AND (CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID
ELSEIF(CMAKE_C_COMPILER_ID MATCHES "MSVC")
SET(WARNING_AS_ERROR "/WX")
ENDIF()
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_AS_ERROR}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_AS_ERROR} -Wno-deprecated-non-prototype")
ENDIF()


2 changes: 1 addition & 1 deletion test/tap/tests/test_binlog_fast_forward-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int pull_replication(MYSQL *mysql, int server_id) {
rpl->start_position= 4;
rpl->flags= MARIADB_RPL_BINLOG_SEND_ANNOTATE_ROWS;
if (mariadb_rpl_open(rpl)) {
fprintf(stderr, "File %s, line %d, Error: %s\n", __FILE__, __LINE__, mariadb_rpl_error(rpl));
fprintf(stderr, "File %s, line %d, Error: '%d':%s\n", __FILE__, __LINE__, mysql_errno(rpl->mysql), mysql_error(rpl->mysql));
return exit_status();
}
int num_heartbeats = 0;
Expand Down

0 comments on commit e822084

Please sign in to comment.