diff options
author | szubersk <[email protected]> | 2022-11-30 20:27:28 +1000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-11-30 13:45:53 -0800 |
commit | 3c1e1933b681cb68e0494c09d902e0187673ecc3 (patch) | |
tree | b35fa53b94e8762793af951b7cfa6bb69cd47160 /cmd | |
parent | 3a6d89ae52da4ba770a9d749eb88444257d56394 (diff) |
Fix GCC 12 compilation errors
Squelch false positives reported by GCC 12 with UBSan.
Reviewed-by: Richard Yao <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #14150
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zfs/zfs_main.c | 2 | ||||
-rw-r--r-- | cmd/zpool/zpool_main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index 2d644c5de..03640a4cd 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -548,7 +548,7 @@ usage(boolean_t requested) show_properties = B_TRUE; if (show_properties) { - (void) fprintf(fp, + (void) fprintf(fp, "%s", gettext("\nThe following properties are supported:\n")); (void) fprintf(fp, "\n\t%-14s %s %s %s\n\n", diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 8a4f3dd16..0b55bf21f 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -548,7 +548,7 @@ usage(boolean_t requested) (strcmp(current_command->name, "get") == 0) || (strcmp(current_command->name, "list") == 0))) { - (void) fprintf(fp, + (void) fprintf(fp, "%s", gettext("\nthe following properties are supported:\n")); (void) fprintf(fp, "\n\t%-19s %s %s\n\n", |