]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- avoid compiler warnings 813/head
authorArvin Schnell <aschnell@suse.de>
Tue, 25 Apr 2023 08:31:41 +0000 (10:31 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 25 Apr 2023 08:31:41 +0000 (10:31 +0200)
dbus/DBusMainLoop.cc
server/Client.cc
server/MetaSnapper.cc

index d839329593376fe3a141a357c25e773d1d16d52e..8f89a7be750c918fde3384496ff0749e164fd485 100644 (file)
@@ -202,6 +202,7 @@ namespace DBus
                return it;
 
        SN_THROW(FatalException());
+       __builtin_unreachable();
     }
 
 
@@ -224,6 +225,7 @@ namespace DBus
                return it;
 
        SN_THROW(FatalException());
+       __builtin_unreachable();
     }
 
 
index f5a2fc6efcc00344a3eae4523ceeb6309d0a029c..35b781857603a8383a28bd9c34e619d5dfb9fcbe 100644 (file)
@@ -92,6 +92,7 @@ Client::find_comparison(Snapper* snapper, Snapshots::const_iterator snapshot1,
     }
 
     SN_THROW(NoComparison());
+    __builtin_unreachable();
 }
 
 
index 46446d654241f200bbcb8e2a0926796715637e03..5013dd66e0353bc1315e1530a1aec2abc4cd6c26 100644 (file)
@@ -157,6 +157,7 @@ MetaSnappers::find(const string& config_name)
            return it;
 
     SN_THROW(UnknownConfig());
+    __builtin_unreachable();
 }