mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
bitcoin#13899: Enable -Wredundant-decls (gcc) if available
This commit is contained in:
parent
82c9431f20
commit
8dbe886202
@ -375,6 +375,7 @@ if test "x$CXXFLAGS_overridden" = "xno"; then
|
|||||||
AX_CHECK_COMPILE_FLAG([-Wformat-security],[WARN_CXXFLAGS="$WARN_CXXFLAGS -Wformat-security"],,[[$CXXFLAG_WERROR]])
|
AX_CHECK_COMPILE_FLAG([-Wformat-security],[WARN_CXXFLAGS="$WARN_CXXFLAGS -Wformat-security"],,[[$CXXFLAG_WERROR]])
|
||||||
AX_CHECK_COMPILE_FLAG([-Wthread-safety],[WARN_CXXFLAGS="$WARN_CXXFLAGS -Wthread-safety"],,[[$CXXFLAG_WERROR]])
|
AX_CHECK_COMPILE_FLAG([-Wthread-safety],[WARN_CXXFLAGS="$WARN_CXXFLAGS -Wthread-safety"],,[[$CXXFLAG_WERROR]])
|
||||||
AX_CHECK_COMPILE_FLAG([-Wrange-loop-analysis],[WARN_CXXFLAGS="$WARN_CXXFLAGS -Wrange-loop-analysis"],,[[$CXXFLAG_WERROR]])
|
AX_CHECK_COMPILE_FLAG([-Wrange-loop-analysis],[WARN_CXXFLAGS="$WARN_CXXFLAGS -Wrange-loop-analysis"],,[[$CXXFLAG_WERROR]])
|
||||||
|
AX_CHECK_COMPILE_FLAG([-Wredundant-decls],[WARN_CXXFLAGS="$WARN_CXXFLAGS -Wredundant-decls"],,[[$CXXFLAG_WERROR]])
|
||||||
|
|
||||||
## Some compilers (gcc) ignore unknown -Wno-* options, but warn about all
|
## Some compilers (gcc) ignore unknown -Wno-* options, but warn about all
|
||||||
## unknown options if any other warning is produced. Test the -Wfoo case, and
|
## unknown options if any other warning is produced. Test the -Wfoo case, and
|
||||||
|
@ -4341,20 +4341,20 @@ static UniValue listlabels(const JSONRPCRequest& request)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern UniValue abortrescan(const JSONRPCRequest& request); // in rpcdump.cpp
|
UniValue abortrescan(const JSONRPCRequest& request); // in rpcdump.cpp
|
||||||
extern UniValue dumpprivkey(const JSONRPCRequest& request); // in rpcdump.cpp
|
UniValue dumpprivkey(const JSONRPCRequest& request); // in rpcdump.cpp
|
||||||
extern UniValue importprivkey(const JSONRPCRequest& request);
|
UniValue importprivkey(const JSONRPCRequest& request);
|
||||||
extern UniValue importaddress(const JSONRPCRequest& request);
|
UniValue importaddress(const JSONRPCRequest& request);
|
||||||
extern UniValue importpubkey(const JSONRPCRequest& request);
|
UniValue importpubkey(const JSONRPCRequest& request);
|
||||||
extern UniValue dumpwallet(const JSONRPCRequest& request);
|
UniValue dumpwallet(const JSONRPCRequest& request);
|
||||||
extern UniValue importwallet(const JSONRPCRequest& request);
|
UniValue importwallet(const JSONRPCRequest& request);
|
||||||
extern UniValue importprunedfunds(const JSONRPCRequest& request);
|
UniValue importprunedfunds(const JSONRPCRequest& request);
|
||||||
extern UniValue removeprunedfunds(const JSONRPCRequest& request);
|
UniValue removeprunedfunds(const JSONRPCRequest& request);
|
||||||
extern UniValue importmulti(const JSONRPCRequest& request);
|
UniValue importmulti(const JSONRPCRequest& request);
|
||||||
extern UniValue rescanblockchain(const JSONRPCRequest& request);
|
UniValue rescanblockchain(const JSONRPCRequest& request);
|
||||||
|
|
||||||
extern UniValue dumphdinfo(const JSONRPCRequest& request);
|
UniValue dumphdinfo(const JSONRPCRequest& request);
|
||||||
extern UniValue importelectrumwallet(const JSONRPCRequest& request);
|
UniValue importelectrumwallet(const JSONRPCRequest& request);
|
||||||
|
|
||||||
static const CRPCCommand commands[] =
|
static const CRPCCommand commands[] =
|
||||||
{ // category name actor (function) argNames
|
{ // category name actor (function) argNames
|
||||||
|
Loading…
Reference in New Issue
Block a user