From: Dmitry Antipov <dmantipov@yandex.ru>
To: Emacs development discussions <emacs-devel@gnu.org>
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Latest gnutls changes breaks --enable-gcc-warnings
Date: Mon, 24 Nov 2014 07:08:10 +0300 [thread overview]
Message-ID: <5472AF2A.5000309@yandex.ru> (raw)
As of e01ec2ed084776b370e0634120deec6b65424b8a, --enable-gcc-warnings produces:
../../emacs/src/gnutls.c:772:1: error: no previous prototype for ‘gnutls_hex_string’ [-Werror=missing-prototypes]
gnutls_hex_string (char *buf, size_t buf_size, char *prefix) {
^
../../emacs/src/gnutls.c:790:1: error: no previous prototype for ‘gnutls_certificate_details’ [-Werror=missing-prototypes]
gnutls_certificate_details (gnutls_x509_crt_t cert)
^
../../emacs/src/gnutls.c: In function ‘gnutls_certificate_details’:
../../emacs/src/gnutls.c:813:7: error: passing argument 3 of ‘gnutls_hex_string’ discards ‘const’ qualifier from pointer target type [-Werror]
gnutls_hex_string (serial, serial_size, "")));
^
../../emacs/src/gnutls.c:772:1: note: expected ‘char *’ but argument is of type ‘const char *’
gnutls_hex_string (char *buf, size_t buf_size, char *prefix) {
^
../../emacs/src/gnutls.c:927:9: error: passing argument 3 of ‘gnutls_hex_string’ discards ‘const’ qualifier from pointer target type [-Werror]
gnutls_hex_string (buf, buf_size, "")));
^
../../emacs/src/gnutls.c:772:1: note: expected ‘char *’ but argument is of type ‘const char *’
gnutls_hex_string (char *buf, size_t buf_size, char *prefix) {
^
../../emacs/src/gnutls.c:945:14: error: passing argument 3 of ‘gnutls_hex_string’ discards ‘const’ qualifier from pointer target type [-Werror]
buf_size, "sha1:")));
^
../../emacs/src/gnutls.c:772:1: note: expected ‘char *’ but argument is of type ‘const char *’
gnutls_hex_string (char *buf, size_t buf_size, char *prefix) {
^
../../emacs/src/gnutls.c:963:14: error: passing argument 3 of ‘gnutls_hex_string’ discards ‘const’ qualifier from pointer target type [-Werror]
buf_size, "sha1:")));
^
../../emacs/src/gnutls.c:772:1: note: expected ‘char *’ but argument is of type ‘const char *’
gnutls_hex_string (char *buf, size_t buf_size, char *prefix) {
^
../../emacs/src/gnutls.c: At top level:
../../emacs/src/gnutls.c:68:5: error: ‘extra_peer_verification_t’ defined but not used [-Werror=unused-variable]
} extra_peer_verification_t;
^
cc1: all warnings being treated as errors
Dmitry
next reply other threads:[~2014-11-24 4:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-24 4:08 Dmitry Antipov [this message]
2014-11-24 14:43 ` Latest gnutls changes breaks --enable-gcc-warnings Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5472AF2A.5000309@yandex.ru \
--to=dmantipov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.