-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compiler warnings for 0.6.0 release #321
Open
Naviabheeman
wants to merge
10
commits into
chaintope:master
Choose a base branch
from
Naviabheeman:FixWarningsForRelease
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a6a6347
fix boost::filesystem deprecated warnings in many functions and m…
Naviabheeman b473919
change memset usage in colored coin and other functions that gav…
Naviabheeman e6f64d7
fix util test - loaddirectory results are updated
Naviabheeman 681df79
revert back CalculateMemPoolAncestors change from uint64_t to int64_t…
Naviabheeman dd621be
port prevector realignmant changes from bitcoin as it caused debug mo…
Naviabheeman 71e4e16
fix crash in tapyrusd when nodes list is locked and staller state bec…
Naviabheeman 1603129
increase rpc timeout to check whether debug mode functional tests can…
Naviabheeman b6a785c
fix more warnings in ubuntu24 - change univalue find_value from frie…
Naviabheeman c20657d
add missing sanity test file to fix build
Naviabheeman 0e3a6ab
fix warnings in QT build
Naviabheeman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,12 +189,6 @@ AC_ARG_ENABLE([lcov-branch-coverage], | |
[use_lcov_branch=yes], | ||
[use_lcov_branch=no]) | ||
|
||
AC_ARG_ENABLE([glibc-back-compat], | ||
[AS_HELP_STRING([--enable-glibc-back-compat], | ||
[enable backwards compatibility with glibc])], | ||
[use_glibc_compat=$enableval], | ||
[use_glibc_compat=no]) | ||
|
||
AC_ARG_ENABLE([asm], | ||
[AS_HELP_STRING([--enable-asm], | ||
[Enable assembly routines (default is yes)])], | ||
|
@@ -653,31 +647,8 @@ AX_CHECK_LINK_FLAG([[-Wl,--large-address-aware]], [LDFLAGS="$LDFLAGS -Wl,--large | |
AX_GCC_FUNC_ATTRIBUTE([visibility]) | ||
AX_GCC_FUNC_ATTRIBUTE([dllexport]) | ||
AX_GCC_FUNC_ATTRIBUTE([dllimport]) | ||
AC_SEARCH_LIBS([clock_gettime],[rt]) | ||
|
||
if test x$use_glibc_compat != xno; then | ||
|
||
#glibc absorbed clock_gettime in 2.17. librt (its previous location) is safe to link | ||
#in anyway for back-compat. | ||
AC_CHECK_LIB([rt],[clock_gettime],, AC_MSG_ERROR(librt missing)) | ||
|
||
#__fdelt_chk's params and return type have changed from long unsigned int to long int. | ||
# See which one is present here. | ||
AC_MSG_CHECKING(__fdelt_chk type) | ||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef _FORTIFY_SOURCE | ||
#undef _FORTIFY_SOURCE | ||
#endif | ||
#define _FORTIFY_SOURCE 2 | ||
#include <sys/select.h> | ||
extern "C" long unsigned int __fdelt_warn(long unsigned int);]],[[]])], | ||
[ fdelt_type="long unsigned int"], | ||
[ fdelt_type="long int"]) | ||
AC_MSG_RESULT($fdelt_type) | ||
AC_DEFINE_UNQUOTED(FDELT_TYPE, $fdelt_type,[parameter and return value type for __fdelt_chk]) | ||
AX_CHECK_LINK_FLAG([[-Wl,--wrap=__divmoddi4]], [COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=__divmoddi4"]) | ||
AX_CHECK_LINK_FLAG([[-Wl,--wrap=log2f]], [COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=log2f"]) | ||
else | ||
AC_SEARCH_LIBS([clock_gettime],[rt]) | ||
fi | ||
|
||
if test "x$enable_gprof" = xyes; then | ||
dnl -pg is incompatible with -pie. Since hardening and profiling together doesn't make sense, | ||
|
@@ -1126,6 +1097,7 @@ if test x$have_miniupnpc = xno; then | |
if test x$use_upnp = xyes; then | ||
AC_MSG_ERROR("UPnP requested but cannot be built. use --without-miniupnpc") | ||
fi | ||
use_upnp=no | ||
AC_MSG_RESULT(no) | ||
else | ||
if test x$use_upnp != xno; then | ||
|
@@ -1143,6 +1115,7 @@ else | |
MINIUPNPC_CPPFLAGS="-DSTATICLIB -DMINIUPNP_STATICLIB" | ||
fi | ||
else | ||
use_upnp=no | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why change this? |
||
AC_MSG_RESULT(no) | ||
fi | ||
fi | ||
|
@@ -1219,7 +1192,6 @@ AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes]) | |
AM_CONDITIONAL([ENABLE_BENCH],[test x$use_bench = xyes]) | ||
AM_CONDITIONAL([USE_QRCODE], [test x$use_qr = xyes]) | ||
AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes]) | ||
AM_CONDITIONAL([GLIBC_BACK_COMPAT],[test x$use_glibc_compat = xyes]) | ||
AM_CONDITIONAL([HARDEN],[test x$use_hardening = xyes]) | ||
AM_CONDITIONAL([ENABLE_HWCRC32],[test x$enable_hwcrc32 = xyes]) | ||
AM_CONDITIONAL([ENABLE_SSE41],[test x$enable_sse41 = xyes]) | ||
|
@@ -1257,7 +1229,6 @@ AC_SUBST(DEBUG_CPPFLAGS) | |
AC_SUBST(WARN_CXXFLAGS) | ||
AC_SUBST(NOWARN_CXXFLAGS) | ||
AC_SUBST(DEBUG_CXXFLAGS) | ||
AC_SUBST(COMPAT_LDFLAGS) | ||
AC_SUBST(ERROR_CXXFLAGS) | ||
AC_SUBST(GPROF_CXXFLAGS) | ||
AC_SUBST(GPROF_LDFLAGS) | ||
|
@@ -1370,7 +1341,7 @@ echo " CFLAGS = $PTHREAD_CFLAGS $CFLAGS" | |
echo " CPPFLAGS = $DEBUG_CPPFLAGS $HARDENED_CPPFLAGS $CPPFLAGS" | ||
echo " CXX = $CXX" | ||
echo " CXXFLAGS = $DEBUG_CXXFLAGS $HARDENED_CXXFLAGS $WARN_CXXFLAGS $NOWARN_CXXFLAGS $ERROR_CXXFLAGS $GPROF_CXXFLAGS $CXXFLAGS" | ||
echo " LDFLAGS = $PTHREAD_LIBS $HARDENED_LDFLAGS $GPROF_LDFLAGS $LDFLAGS" | ||
echo " LDFLAGS = $HARDENED_LDFLAGS $GPROF_LDFLAGS $LDFLAGS" | ||
echo " AR = $AR" | ||
echo " ARFLAGS = $ARFLAGS" | ||
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this?