Skip to content

Commit fa58bc4

Browse files
committed
Fixed undefined behavior for some non-void functions in 'test_ps_no_store-t' not returning
1 parent 18de7a0 commit fa58bc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/tap/tests/test_ps_no_store-t.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,16 @@ int select_config_file(MYSQL* mysql, std::string& resultset) {
3434
fprintf(stderr, "error\n");
3535
}
3636

37+
return 0;
3738
}
3839

3940
int restore_admin(MYSQL* mysqladmin) {
4041
MYSQL_QUERY(mysqladmin, "load mysql query rules from disk");
4142
MYSQL_QUERY(mysqladmin, "load mysql query rules to runtime");
4243
MYSQL_QUERY(mysqladmin, "load mysql servers from disk");
4344
MYSQL_QUERY(mysqladmin, "load mysql servers to runtime");
45+
46+
return 0;
4447
}
4548

4649
int main(int argc, char** argv) {

0 commit comments

Comments
 (0)