mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Treat warning as errors
This commit is contained in:
parent
d1c26e4535
commit
d35f3fc573
@ -97,7 +97,7 @@ if(WITH_APP_BUNDLE)
|
||||
endif()
|
||||
|
||||
add_gcc_compiler_flags("-fno-common")
|
||||
add_gcc_compiler_flags("-Wall -Wextra -Wundef -Wpointer-arith -Wno-long-long")
|
||||
add_gcc_compiler_flags("-Wall -Werror -Wextra -Wundef -Wpointer-arith -Wno-long-long")
|
||||
add_gcc_compiler_flags("-Wformat=2 -Wmissing-format-attribute")
|
||||
add_gcc_compiler_flags("-fvisibility=hidden")
|
||||
add_gcc_compiler_cxxflags("-fvisibility-inlines-hidden")
|
||||
|
@ -1815,6 +1815,9 @@ reexecute:
|
||||
|
||||
case 2:
|
||||
parser->upgrade = 1;
|
||||
#if __GNUC__ >= 7
|
||||
__attribute__ ((fallthrough));
|
||||
#endif
|
||||
|
||||
case 1:
|
||||
parser->flags |= F_SKIPBODY;
|
||||
@ -2374,6 +2377,9 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
|
||||
|
||||
case s_req_server_with_at:
|
||||
found_at = 1;
|
||||
#if __GNUC__ >= 7
|
||||
__attribute__ ((fallthrough));
|
||||
#endif
|
||||
|
||||
/* FALLTROUGH */
|
||||
case s_req_server:
|
||||
|
@ -95,7 +95,7 @@ bool SSHAgent::sendMessage(const QByteArray& in, QByteArray& out) const
|
||||
return false;
|
||||
}
|
||||
|
||||
if (in.length() > AGENT_MAX_MSGLEN - 4) {
|
||||
if (static_cast<quint32>(in.length()) > AGENT_MAX_MSGLEN - 4) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ private:
|
||||
#ifndef Q_OS_WIN
|
||||
QString m_socketPath;
|
||||
#else
|
||||
const int AGENT_MAX_MSGLEN = 8192;
|
||||
const quint32 AGENT_MAX_MSGLEN = 8192;
|
||||
const quint32 AGENT_COPYDATA_ID = 0x804e50ba;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user