You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3efeb9d Merge bitcoin-core/secp256k1#1121: config: Set preprocessor defaults for ECMULT_* config values
6a873cc Merge bitcoin-core/secp256k1#1122: tests: Randomize the context with probability 15/16 instead of 1/4
17065f4 tests: Randomize the context with probability 15/16 instead of 1/4
c27ae45 config: Remove basic-config.h
da6514a config: Introduce DEBUG_CONFIG macro for debug output of config
63a3565 Merge bitcoin-core/secp256k1#1120: ecmult_gen: Skip RNG when creating blinding if no seed is available
d0cf55e config: Set preprocessor defaults for ECMULT_* config values
55f8bc9 ecmult_gen: Improve comments about projective blinding
7a86955 ecmult_gen: Simplify code (no observable change)
4cc0b1b ecmult_gen: Skip RNG when creating blinding if no seed is available
af65d30 Merge bitcoin-core/secp256k1#1116: build: Fix #include "..." paths to get rid of further -I arguments
40a3473 build: Fix #include "..." paths to get rid of further -I arguments
43756da Merge bitcoin-core/secp256k1#1115: Fix sepc256k1 -> secp256k1 typo in group.h
069aba8 Fix sepc256k1 -> secp256k1 typo in group.h
accadc9 Merge bitcoin-core/secp256k1#1114: `_scratch_destroy`: move `VERIFY_CHECK` after invalid scrach space check
cd47033 Merge bitcoin-core/secp256k1#1084: ci: Add MSVC builds
1827c9b scratch_destroy: move VERIFY_CHECK after invalid scrach space check
49e2acd configure: Improve rationale for WERROR_CFLAGS
8dc4b03 ci: Add a C++ job that compiles the public headers without -fpermissive
51f296a ci: Run persistent wineserver to speed up wine
3fb3269 ci: Add 32-bit MinGW64 build
9efc2e5 ci: Add MSVC builds
2be6ba0 configure: Convince autotools to work with MSVC's archiver lib.exe
bd81f41 schnorrsig bench: Suppress a stupid warning in MSVC
09f3d71 configure: Add a few CFLAGS for MSVC
3b4f3d0 build: Reject C++ compilers in the preprocessor
1cc0941 configure: Don't abort if the compiler does not define __STDC__
cca8cbb configure: Output message when checking for valgrind
1a6be57 bench: Make benchmarks compile on MSVC
git-subtree-dir: src/secp256k1
git-subtree-split: 3efeb9d
SECP_TRY_APPEND_CFLAGS([-std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef], $1) # GCC >= 3.0, -Wlong-long is implied by -pedantic.
97
-
SECP_TRY_APPEND_CFLAGS([-Wno-overlength-strings], $1) # GCC >= 4.2, -Woverlength-strings is implied by -pedantic.
98
-
SECP_TRY_APPEND_CFLAGS([-Wall], $1) # GCC >= 2.95 and probably many other compilers
99
-
SECP_TRY_APPEND_CFLAGS([-Wno-unused-function], $1) # GCC >= 3.0, -Wunused-function is implied by -Wall.
100
-
SECP_TRY_APPEND_CFLAGS([-Wextra], $1) # GCC >= 3.4, this is the newer name of -W, which we don't use because older GCCs will warn about unused functions.
SECP_TRY_APPEND_CFLAGS([-std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef], $1) # GCC >= 3.0, -Wlong-long is implied by -pedantic.
103
+
SECP_TRY_APPEND_CFLAGS([-Wno-overlength-strings], $1) # GCC >= 4.2, -Woverlength-strings is implied by -pedantic.
104
+
SECP_TRY_APPEND_CFLAGS([-Wall], $1) # GCC >= 2.95 and probably many other compilers
105
+
SECP_TRY_APPEND_CFLAGS([-Wno-unused-function], $1) # GCC >= 3.0, -Wunused-function is implied by -Wall.
106
+
SECP_TRY_APPEND_CFLAGS([-Wextra], $1) # GCC >= 3.4, this is the newer name of -W, which we don't use because older GCCs will warn about unused functions.
# Assume MSVC if we're building for Windows but not with GCC or compatible;
117
+
# libtool makes the same assumption internally.
118
+
# Note that "/opt" and "-opt" are equivalent for MSVC; we use "-opt" because "/opt" looks like a path.
119
+
if test x"$GCC" != x"yes" && test x"$build_windows" = x"yes"; then
120
+
SECP_TRY_APPEND_CFLAGS([-W2 -wd4146], $1) # Moderate warning level, disable warning C4146 "unary minus operator applied to unsigned type, result still unsigned"
121
+
SECP_TRY_APPEND_CFLAGS([-external:anglebrackets -external:W0], $1) # Suppress warnings from #include <...> files
122
+
fi
107
123
])
108
124
SECP_TRY_APPEND_DEFAULT_CFLAGS(SECP_CFLAGS)
109
125
@@ -326,7 +342,9 @@ if test x"$enable_valgrind" = x"yes"; then
326
342
SECP_INCLUDES="$SECP_INCLUDES $VALGRIND_CPPFLAGS"
327
343
fi
328
344
329
-
# Add -Werror and similar flags passed from the outside (for testing, e.g., in CI)
345
+
# Add -Werror and similar flags passed from the outside (for testing, e.g., in CI).
346
+
# We don't want to set the user variable CFLAGS in CI because this would disable
347
+
# autoconf's logic for setting default CFLAGS, which we would like to test in CI.
0 commit comments