Patches for build issues with 14.13

Get help for specific problems
Posts: 61
Joined: 14 Aug 2022

daviank

Dear Zenju,

Please consider fixing your next sources with these patches.
Build of 14.13 fails if they are not applied.

Missing "\"
--- a/FreeFileSync/Source/Makefile
+++ b/FreeFileSync/Source/Makefile
@@ -10,7 +10,7 @@ exeName := FreeFileSync_$(shell arch)
 CXXFLAGS += -std=c++26 -pipe -I../.. -I../../zenXml -include "zen/i18n.h" \
            -DWXINTL_NO_GETTEXT_MACRO -DwxNO_IMPLICIT_WXSTRING_ENCODING -DwxNO_IMPLICIT_WXSTRING_CONV_TO_PTR \
            -Wall -Wfatal-errors -Wshadow -Wmissing-include-dirs -Wswitch-enum -Wcast-align -Wnon-virtual-dtor -Wimplicit-fallthrough -Wundef -Wpedantic -Wredundant-decls \
-           -Wno-unused-function -Wno-deprecated-enum-enum-conversion
+           -Wno-unused-function -Wno-deprecated-enum-enum-conversion \
            -O3 -DNDEBUG
 CXXFLAGS += -Wno-maybe-uninitialized -Wno-free-nonheap-object -Wno-restrict -Wduplicated-cond -Wlogical-op
 
diff --git a/FreeFileSync/Source/RealTimeSync/Makefile b/FreeFileSync/Source/RealTimeSync/Makefile
index df6c529..ddcf354 100644
--- a/FreeFileSync/Source/RealTimeSync/Makefile
+++ b/FreeFileSync/Source/RealTimeSync/Makefile
@@ -10,7 +10,7 @@ exeName := RealTimeSync_$(shell arch)
 CXXFLAGS += -std=c++26 -pipe -I../../.. -I../../../zenXml -include "zen/i18n.h" \
            -DWXINTL_NO_GETTEXT_MACRO -DwxNO_IMPLICIT_WXSTRING_ENCODING -DwxNO_IMPLICIT_WXSTRING_CONV_TO_PTR \
            -Wall -Wfatal-errors -Wshadow -Wmissing-include-dirs -Wswitch-enum -Wcast-align -Wnon-virtual-dtor -Wimplicit-fallthrough -Wundef -Wpedantic -Wredundant-decls \
-           -Wno-unused-function -Wno-deprecated-enum-enum-conversion
+           -Wno-unused-function -Wno-deprecated-enum-enum-conversion \
            -O3 -DNDEBUG
 CXXFLAGS += -Wno-maybe-uninitialized -Wno-free-nonheap-object -Wno-restrict -Wduplicated-cond -Wlogical-op
Regression in 14.13 (14.12 was fine)
--- a/xBRZ/src/xbrz.cpp
+++ b/xBRZ/src/xbrz.cpp
@@ -82,7 +82,7 @@ uint32_t gradientARGB(uint32_t pixFront, uint32_t pixBack)
 //
 
 
-#if  def __GNUC__
+#if  defined __GNUC__
     #define FORCE_INLINE __attribute__((always_inline)) inline
 #else
     #define FORCE_INLINE inline
diff --git a/zen/argon2.cpp b/zen/argon2.cpp
index ee16a17..f58a03f 100644
--- a/zen/argon2.cpp
+++ b/zen/argon2.cpp
@@ -39,7 +39,7 @@
 #include <cassert>
 #include <cstdint>
 
-#if  def __GNUC__ //including clang
+#if  defined __GNUC__ //including clang
     #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" //"this statement may fall through"
     #pragma GCC diagnostic ignored "-Wcast-align" //"cast from 'char *' to 'blake2b *' increases required alignment from 1 to 8"
 #endif
User avatar
Site Admin
Posts: 7588
Joined: 9 Dec 2007

Zenju

Fixed!