diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-06 02:22:06 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-06 02:22:06 +0000 |
commit | 4f2b83cd074dd4ca966271611c2c7426796ee08f (patch) | |
tree | 0c9836ea826f294860bacdef312a61abdcdae3bc /libblockdev-gcc11.patch | |
parent | d4519e44a5f6efd56e0943973dc3975e737e7139 (diff) |
automatic import of libblockdevopeneuler24.03_LTS
Diffstat (limited to 'libblockdev-gcc11.patch')
-rw-r--r-- | libblockdev-gcc11.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libblockdev-gcc11.patch b/libblockdev-gcc11.patch new file mode 100644 index 0000000..6e5fe35 --- /dev/null +++ b/libblockdev-gcc11.patch @@ -0,0 +1,15 @@ +diff --git a/src/plugins/kbd.c b/src/plugins/kbd.c +index a2908ec..97abd3b 100644 +--- a/src/plugins/kbd.c ++++ b/src/plugins/kbd.c +@@ -732,6 +732,10 @@ static gboolean wait_for_file (const char *filename) { + * + * Tech category: %BD_KBD_TECH_BCACHE-%BD_KBD_TECH_MODE_CREATE + */ ++/* This triggers a known false positive warning in gcc-11. It's being ++ addressed upstream, but until the fix is available, this works around ++ the false positive. */ ++__attribute__ ((optimize ("-O1"))) + gboolean bd_kbd_bcache_create (const gchar *backing_device, const gchar *cache_device, const BDExtraArg **extra, const gchar **bcache_device, GError **error) { + const gchar *argv[6] = {"make-bcache", "-B", backing_device, "-C", cache_device, NULL}; + gboolean success = FALSE; |