Skip to content

Commit

Permalink
Fix build on Mac with -DICINGA2_UNITY_BUILD=OFF -DICINGA2_WITH_LIVEST…
Browse files Browse the repository at this point in the history
…ATUS=ON

error: no matching function for call to 'intrusive_ptr_release'
...
candidate function not viable: cannot convert argument of incomplete type 'icinga::Notification *' to 'Object *' for 1st argument
void intrusive_ptr_release(Object *object);
  • Loading branch information
Al2Klimov committed Sep 27, 2024
1 parent 01d3a1d commit 2bbeaec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/icinga/notification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class ApplyRule;
struct ScriptFrame;
class Host;
class Service;
class UserGroup;

/**
* An Icinga notification specification.
Expand All @@ -73,7 +74,7 @@ class Notification final : public ObjectImpl<Notification>
intrusive_ptr<NotificationCommand> GetCommand() const;
TimePeriod::Ptr GetPeriod() const;
std::set<User::Ptr> GetUsers() const;
std::set<UserGroup::Ptr> GetUserGroups() const;
std::set<intrusive_ptr<UserGroup>> GetUserGroups() const;

void UpdateNotificationNumber();
void ResetNotificationNumber();
Expand Down
1 change: 1 addition & 0 deletions lib/icinga/usergroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#define USERGROUP_H

#include "icinga/i2-icinga.hpp"
#include "icinga/notification.hpp"
#include "icinga/usergroup-ti.hpp"
#include "icinga/user.hpp"

Expand Down

0 comments on commit 2bbeaec

Please sign in to comment.