Skip to content

Commit

Permalink
Merge pull request #498 from tiwoc/fix-macos-warnings
Browse files Browse the repository at this point in the history
Fix macOS build warnings
  • Loading branch information
AdrianKoshka committed Nov 19, 2019
2 parents 9080ce4 + dc2d8e9 commit 1246ec3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
4 changes: 1 addition & 3 deletions src/gui/src/SettingsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include <QFileDialog>
#include <QDir>

static const char networkSecurity[] = "ns";

SettingsDialog::SettingsDialog(QWidget* parent, AppConfig& config) :
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
Ui::SettingsDialogBase(),
Expand Down Expand Up @@ -136,4 +134,4 @@ void SettingsDialog::on_m_pComboLanguage_currentIndexChanged(int index)
{
QString ietfCode = m_pComboLanguage->itemData(index).toString();
QBarrierApplication::getInstance()->switchTranslator(ietfCode);
}
}
1 change: 0 additions & 1 deletion src/lib/arch/unix/ArchNetworkBSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,6 @@ ArchNetworkBSD::nameToAddr(const std::string& name)
// allocate address
ArchNetAddressImpl* addr = new ArchNetAddressImpl;

char ipstr[INET6_ADDRSTRLEN];
struct addrinfo hints;
struct addrinfo *p;
int ret;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/barrier/ServerApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,9 @@ ServerApp::handleNoClients(const Event&, void*)
void
ServerApp::handleScreenSwitched(const Event& e, void*)
{
Server::SwitchToScreenInfo* info = (Server::SwitchToScreenInfo*)(e.getData());

#ifdef WINAPI_XWINDOWS
Server::SwitchToScreenInfo* info = (Server::SwitchToScreenInfo*)(e.getData());

if (!args().m_screenChangeScript.empty()) {
LOG((CLOG_INFO "Running shell script for screen \"%s\"", info->m_screen));

Expand Down
2 changes: 1 addition & 1 deletion src/lib/ipc/IpcLogOutputter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ IpcLogOutputter::IpcLogOutputter(IpcServer& ipcServer, EIpcClientType clientType
m_running(false),
m_notifyCond(ARCH->newCondVar()),
m_notifyMutex(ARCH->newMutex()),
m_bufferThreadId(0),
m_bufferWaiting(false),
m_bufferThreadId(0),
m_bufferMaxSize(kBufferMaxSize),
m_bufferRateWriteLimit(kBufferRateWriteLimit),
m_bufferRateTimeLimit(kBufferRateTimeLimit),
Expand Down
10 changes: 5 additions & 5 deletions src/lib/net/SecureSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ class SecureSocket : public TCPSocket {
~SecureSocket();

// ISocket overrides
void close();
void close() override;

// IDataSocket overrides
virtual void connect(const NetworkAddress&);
virtual void connect(const NetworkAddress&) override;

std::unique_ptr<ISocketMultiplexerJob> newJob() override;
bool isFatal() const { return m_fatal; }
bool isFatal() const override { return m_fatal; }
void isFatal(bool b) { m_fatal = b; }
bool isSecureReady();
void secureConnect();
void secureAccept();
int secureRead(void* buffer, int size, int& read);
int secureWrite(const void* buffer, int size, int& wrote);
EJobResult doRead();
EJobResult doWrite();
EJobResult doRead() override;
EJobResult doWrite() override;
void initSsl(bool server);
bool loadCertificates(String& CertFile);

Expand Down
4 changes: 2 additions & 2 deletions src/lib/platform/OSXDragView.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ @implementation OSXDragView

- (NSPoint)draggingLocation
{
NSPoint point;
NSPoint point = NSMakePoint(0, 0);
return point;
}

- (NSPoint)draggedImageLocation
{
NSPoint point;
NSPoint point = NSMakePoint(0, 0);
return point;
}

Expand Down

0 comments on commit 1246ec3

Please sign in to comment.