Skip to content

Commit

Permalink
Fixed some build problems on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Sep 25, 2024
1 parent b269f5a commit 1afc8f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ if(MSVC)
add_definitions(-DWIN32_LEAN_AND_MEANS)
add_definitions(-D_POSIX_C_SOURCE)
add_definitions(-DVCPKG_TARGET_TRIPLET=x64-windows)
add_definitions(-D_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING)
add_definitions(-D_SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(LIBS_SYSTEM ws2_32)
elseif(UNIX)
Expand Down
2 changes: 1 addition & 1 deletion src/bootloaderwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ CWizardPageLoadMdf::isComplete(void) const
bool
CWizardPageLoadMdf::validatePage(void)
{
int rv;
//int rv;
vscpworks* pworks = (vscpworks*)QCoreApplication::instance();

switch (m_vscpClient->getType()) {
Expand Down
2 changes: 1 addition & 1 deletion src/cfrmsession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@ CFrmSession::saveTxEvents(const QString& path, bool bSelected)

stream.writeStartElement("txrows");

if (selection.size() & bSelected) {
if ((0 != selection.size()) & bSelected) {

// Save selected items
QList<QModelIndex>::iterator it;
Expand Down

0 comments on commit 1afc8f6

Please sign in to comment.