mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
Merge pull request #27840 from mrc0mmand/gcc-13
ci: add gcc-13, drop gcc-12
This commit is contained in:
commit
5aab673dd1
2
.github/workflows/build_test.yml
vendored
2
.github/workflows/build_test.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
matrix:
|
||||
env:
|
||||
- { COMPILER: "gcc", COMPILER_VERSION: "11", LINKER: "bfd", CRYPTOLIB: "gcrypt" }
|
||||
- { COMPILER: "gcc", COMPILER_VERSION: "12", LINKER: "gold", CRYPTOLIB: "openssl" }
|
||||
- { COMPILER: "gcc", COMPILER_VERSION: "13", LINKER: "gold", CRYPTOLIB: "openssl" }
|
||||
- { COMPILER: "clang", COMPILER_VERSION: "14", LINKER: "mold", CRYPTOLIB: "gcrypt" }
|
||||
- { COMPILER: "clang", COMPILER_VERSION: "15", LINKER: "lld", CRYPTOLIB: "openssl" }
|
||||
- { COMPILER: "clang", COMPILER_VERSION: "16", LINKER: "bfd", CRYPTOLIB: "auto" }
|
||||
|
|
|
@ -376,6 +376,7 @@ possible_common_cc_flags = [
|
|||
'-Werror=return-type',
|
||||
'-Werror=shift-count-overflow',
|
||||
'-Werror=shift-overflow=2',
|
||||
'-Werror=strict-flex-arrays',
|
||||
'-Werror=undef',
|
||||
'-Wfloat-equal',
|
||||
# gperf prevents us from enabling this because it does not emit fallthrough
|
||||
|
|
|
@ -54,7 +54,7 @@ typedef struct {
|
|||
uint8_t Digest[20];
|
||||
} Digest;
|
||||
uint32_t EventSize;
|
||||
uint8_t Event[0];
|
||||
uint8_t Event[];
|
||||
} _packed_ TCG_PCR_EVENT;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -325,6 +325,8 @@ static char* merge_unit_ids(const char* unit_log_field, char * const* pairs) {
|
|||
_cleanup_free_ char *ans = NULL;
|
||||
size_t size = 0;
|
||||
|
||||
assert(unit_log_field);
|
||||
|
||||
STRV_FOREACH_PAIR(unit_id, job_type, pairs) {
|
||||
size_t next;
|
||||
|
||||
|
|
|
@ -342,6 +342,9 @@ int get_credential_host_secret(CredentialSecretFlags flags, void **ret, size_t *
|
|||
filename = "credential.secret";
|
||||
}
|
||||
|
||||
assert(dirname);
|
||||
assert(filename);
|
||||
|
||||
mkdir_parents(dirname, 0755);
|
||||
dfd = open_mkdir_at(AT_FDCWD, dirname, O_CLOEXEC, 0755);
|
||||
if (dfd < 0)
|
||||
|
|
Loading…
Reference in a new issue