9a038ef348
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/libblockdev#5e985ab28c5d4b9ba6e67c31d9a5bf58f684e7c6
16 lines
773 B
Diff
16 lines
773 B
Diff
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;
|