1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Build fixes:

- Fixed build error, which was previously introduced by commit
c8ca89112e

- Treat warnings as errors
This commit is contained in:
Georg Richter
2023-08-16 14:09:34 +02:00
parent c8ca89112e
commit 1acb81e11c
8 changed files with 21 additions and 12 deletions

View File

@@ -121,11 +121,7 @@ extern int _getopt_internal (int argc, char *const *argv,
const struct option *longopts, int *longind,
int long_only);
#else /* not __STDC__ */
extern int getopt ();
extern int getopt_long ();
extern int getopt_long_only ();
extern int _getopt_internal ();
extern int getopt (int argc, char *const *argv, const char *optstring);
#endif /* __STDC__ */
#ifdef __cplusplus

View File

@@ -38,6 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <pthread.h>
#else
#include <io.h>
#define unlink _unlink
#endif
#ifndef OK

View File

@@ -342,9 +342,9 @@ static int test_conc592(MYSQL *my __attribute__((unused)))
}
struct my_tests_st my_tests[] = {
// {"test_conc592", test_conc592, TEST_CONNECTION_NEW, 0, NULL, NULL},
//{"test_rpl_async", test_rpl_async, TEST_CONNECTION_NEW, 0, NULL, NULL},
//{"test_rpl_semisync", test_rpl_semisync, TEST_CONNECTION_NEW, 0, NULL, NULL},
{"test_conc592", test_conc592, TEST_CONNECTION_NEW, 0, NULL, NULL},
{"test_rpl_async", test_rpl_async, TEST_CONNECTION_NEW, 0, NULL, NULL},
{"test_rpl_semisync", test_rpl_semisync, TEST_CONNECTION_NEW, 0, NULL, NULL},
{"test_conc467", test_conc467, TEST_CONNECTION_NEW, 0, NULL, NULL},
{NULL, NULL, 0, 0, NULL, NULL}
};