Skip to content

Commit

Permalink
Fix ios build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Jan 23, 2025
1 parent 1a83167 commit bfdb09d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions cpp/src/Ice/Selector.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ struct __CFSocket;
typedef struct __CFSocket* CFSocketRef;
#endif

#ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wweak-vtables"
#endif

namespace IceInternal
{
//
Expand Down Expand Up @@ -232,4 +237,8 @@ namespace IceInternal
#endif
}

#ifdef __clang__
# pragma clang diagnostic pop
#endif

#endif
2 changes: 2 additions & 0 deletions cpp/src/Ice/ios/StreamEndpointI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ IceObjC::Instance::Instance(const Ice::CommunicatorPtr& communicator, int16_t ty
}
}

IceObjC::Instance::~Instance() = default;

void
IceObjC::Instance::setupStreams(
CFReadStreamRef readStream,
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/Ice/ios/StreamEndpointI.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace IceObjC
{
public:
Instance(const Ice::CommunicatorPtr&, std::int16_t, const std::string&, bool);
~Instance() = default;
~Instance() override;

const std::string& proxyHost() const { return _proxyHost; }

Expand Down

0 comments on commit bfdb09d

Please sign in to comment.