Skip to content

Commit

Permalink
Merge pull request #2759 from HerculesWS/fix-errors
Browse files Browse the repository at this point in the history
Fix errors in the ci builds
  • Loading branch information
hemagx committed Jun 1, 2020
2 parents 380eba3 + 677c78b commit 48da9b6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
48 changes: 24 additions & 24 deletions .gitlab-ci.yml
Expand Up @@ -825,81 +825,81 @@ re:debian-testing:
pre_re:centos-previous:
<<: *branch_exceptions
stage: platforms
image: centos:6
image: centos:7
services:
- mysql:5.5
- mariadb:5.5
variables:
<<: *base_vars
SQLHOST: mysql
SQLHOST: mariadb
before_script:
- echo "Building $CI_BUILD_NAME"
- uname -a
- yum -y update
- yum install -y make mysql-devel pcre-devel git zlib-devel mysql centos-release-scl
- yum install -y devtoolset-6-toolchain
- yum install -y gcc make mariadb-devel pcre-devel git zlib-devel mariadb
- ./tools/ci/travis.sh importdb ragnarok ragnarok ragnarok $SQLHOST
- ./tools/ci/travis.sh getplugins || true
script:
- 'source /opt/rh/devtoolset-6/enable && ./tools/ci/travis.sh build --enable-debug --enable-Werror --enable-buildbot --disable-renewal'
- ./tools/ci/travis.sh build --enable-debug --enable-Werror --enable-buildbot --disable-renewal
- ./tools/ci/travis.sh test ragnarok ragnarok ragnarok $SQLHOST

re:centos-previous:
<<: *branch_exceptions
stage: platforms
image: centos:6
image: centos:7
services:
- mysql:5.5
- mariadb:5.5
variables:
<<: *base_vars
SQLHOST: mysql
SQLHOST: mariadb
before_script:
- echo "Building $CI_BUILD_NAME"
- uname -a
- yum -y update
- yum install -y make mysql-devel pcre-devel git zlib-devel mysql centos-release-scl
- yum install -y devtoolset-6-toolchain
- yum install -y gcc make mariadb-devel pcre-devel git zlib-devel mariadb
- ./tools/ci/travis.sh importdb ragnarok ragnarok ragnarok $SQLHOST
- ./tools/ci/travis.sh getplugins || true
script:
- 'source /opt/rh/devtoolset-6/enable && ./tools/ci/travis.sh build --enable-debug --enable-Werror --enable-buildbot'
- ./tools/ci/travis.sh build --enable-debug --enable-Werror --enable-buildbot
- ./tools/ci/travis.sh test ragnarok ragnarok ragnarok $SQLHOST

pre_re:centos-current:
<<: *branch_exceptions
stage: platforms
image: centos:7
image: centos:8
services:
- mariadb:5.5
- mariadb:10.3
variables:
<<: *base_vars
SQLHOST: mariadb
before_script:
- echo "Building $CI_BUILD_NAME"
- uname -a
- yum -y update
- yum install -y gcc make mariadb-devel pcre-devel git zlib-devel mariadb
- yum install -y gcc make mariadb-devel pcre-devel git zlib-devel mariadb python2
- alternatives --set python /usr/bin/python2
- ./tools/ci/travis.sh importdb ragnarok ragnarok ragnarok $SQLHOST
- ./tools/ci/travis.sh getplugins || true
variables:
<<: *base_vars
SQLHOST: mariadb
script:
- ./tools/ci/travis.sh build --enable-debug --enable-Werror --enable-buildbot --disable-renewal
- ./tools/ci/travis.sh test ragnarok ragnarok ragnarok $SQLHOST

re:centos-current:
<<: *branch_exceptions
stage: platforms
image: centos:7
image: centos:8
services:
- mariadb:5.5
- mariadb:10.3
variables:
<<: *base_vars
SQLHOST: mariadb
before_script:
- echo "Building $CI_BUILD_NAME"
- uname -a
- yum -y update
- yum install -y gcc make mariadb-devel pcre-devel git zlib-devel mariadb
- yum install -y gcc make mariadb-devel pcre-devel git zlib-devel mariadb python2
- alternatives --set python /usr/bin/python2
- ./tools/ci/travis.sh importdb ragnarok ragnarok ragnarok $SQLHOST
- ./tools/ci/travis.sh getplugins || true
variables:
<<: *base_vars
SQLHOST: mariadb
script:
- ./tools/ci/travis.sh build --enable-debug --enable-Werror --enable-buildbot
- ./tools/ci/travis.sh test ragnarok ragnarok ragnarok $SQLHOST
Expand Down
4 changes: 2 additions & 2 deletions src/map/script.c
Expand Up @@ -3692,8 +3692,8 @@ static int set_reg(struct script_state *st, struct map_session_data *sd, int64 n
const char *str = (const char*)value;

if (script->is_permanent_variable(name) && strlen(str) > SCRIPT_STRING_VAR_LENGTH) {
ShowError("script:set_reg: Value of variable %s is too long: %lu! Maximum is %d. Skipping...\n",
name, strlen(str), SCRIPT_STRING_VAR_LENGTH);
ShowError("script:set_reg: Value of variable %s is too long: %d! Maximum is %d. Skipping...\n",
name, (int)strlen(str), SCRIPT_STRING_VAR_LENGTH);

if (st != NULL) {
script->reportsrc(st);
Expand Down
8 changes: 4 additions & 4 deletions src/map/skill.c
Expand Up @@ -20662,8 +20662,8 @@ static void skill_validate_name(struct config_setting_t *conf, struct s_skill_db
ShowError("%s: No name specified for skill ID %d in %s! Skipping skill...\n",
__func__, sk->nameid, conf->file);
else if (strlen(name) >= sizeof(sk->name))
ShowError("%s: Specified name %s for skill ID %d in %s is too long: %lu! Maximum is %lu. Skipping skill...\n",
__func__, name, sk->nameid, conf->file, strlen(name), sizeof(sk->name) - 1);
ShowError("%s: Specified name %s for skill ID %d in %s is too long: %d! Maximum is %d. Skipping skill...\n",
__func__, name, sk->nameid, conf->file, (int)strlen(name), (int)sizeof(sk->name) - 1);
else if (skill->name_contains_invalid_character(name))
ShowError("%s: Specified name %s for skill ID %d in %s contains invalid characters! Allowed characters are letters, numbers and underscores. Skipping skill...\n",
__func__, name, sk->nameid, conf->file);
Expand Down Expand Up @@ -20719,8 +20719,8 @@ static void skill_validate_description(struct config_setting_t *conf, struct s_s

if (libconfig->setting_lookup_string(conf, "Description", &description) == CONFIG_TRUE && *description != '\0') {
if (strlen(description) >= sizeof(sk->desc))
ShowWarning("%s: Specified description '%s' for skill ID %d in %s is too long: %lu! Maximum is %lu. Trimming...\n",
__func__, description, sk->nameid, conf->file, strlen(description), sizeof(sk->desc) - 1);
ShowWarning("%s: Specified description '%s' for skill ID %d in %s is too long: %d! Maximum is %d. Trimming...\n",
__func__, description, sk->nameid, conf->file, (int)strlen(description), (int)sizeof(sk->desc) - 1);

safestrncpy(sk->desc, description, sizeof(sk->desc));
}
Expand Down

0 comments on commit 48da9b6

Please sign in to comment.