more [[gnu::...]] attributes

This commit is contained in:
Max Kellermann
2021-10-13 11:28:04 +02:00
parent 1c4b484a56
commit f510564d9d
135 changed files with 361 additions and 514 deletions

View File

@@ -33,8 +33,6 @@
#ifndef ODBUS_ERROR_HXX
#define ODBUS_ERROR_HXX
#include "util/Compiler.h"
#include <dbus/dbus.h>
namespace ODBus {
@@ -54,7 +52,7 @@ public:
Error(const Error &) = delete;
Error &operator=(const Error &) = delete;
gcc_pure
[[gnu::pure]]
operator bool() const noexcept {
return dbus_error_is_set(&error);
}