Blame libblockdev-gcc11.patch
|
Petr Šabata |
9a038e |
diff --git a/src/plugins/kbd.c b/src/plugins/kbd.c
|
|
Petr Šabata |
9a038e |
index a2908ec..97abd3b 100644
|
|
Petr Šabata |
9a038e |
--- a/src/plugins/kbd.c
|
|
Petr Šabata |
9a038e |
+++ b/src/plugins/kbd.c
|
|
Petr Šabata |
9a038e |
@@ -732,6 +732,10 @@ static gboolean wait_for_file (const char *filename) {
|
|
Petr Šabata |
9a038e |
*
|
|
Petr Šabata |
9a038e |
* Tech category: %BD_KBD_TECH_BCACHE-%BD_KBD_TECH_MODE_CREATE
|
|
Petr Šabata |
9a038e |
*/
|
|
Petr Šabata |
9a038e |
+/* This triggers a known false positive warning in gcc-11. It's being
|
|
Petr Šabata |
9a038e |
+ addressed upstream, but until the fix is available, this works around
|
|
Petr Šabata |
9a038e |
+ the false positive. */
|
|
Petr Šabata |
9a038e |
+__attribute__ ((optimize ("-O1")))
|
|
Petr Šabata |
9a038e |
gboolean bd_kbd_bcache_create (const gchar *backing_device, const gchar *cache_device, const BDExtraArg **extra, const gchar **bcache_device, GError **error) {
|
|
Petr Šabata |
9a038e |
const gchar *argv[6] = {"make-bcache", "-B", backing_device, "-C", cache_device, NULL};
|
|
Petr Šabata |
9a038e |
gboolean success = FALSE;
|