[gnutls-devel] GnuTLS | Suppress compile time warnings on Fedora 36 (!1606)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Jul 15 12:12:38 CEST 2022




Zoltán Fridrich started a new discussion: https://gitlab.com/gnutls/gnutls/-/merge_requests/1606#note_1027694681

I tried to compile gnutls with this patch locally on my f36, looks pretty good. There are still 4 compiler warnings however:

```
tpm2.c:123:20: warning: 'asn1_static_node_t' macro is deprecated, use 'asn1_static_node' instead.
  123 |         ASN1_DATA_NODE d;

tests.c:1604:17: warning: use of NULL 'pos' where non-null expected [CWE-476] [-Wanalyzer-null-argument]                                                                                                                                      
 1604 |                 memcpy(pos, t.data, t.size);

certtool-common.c:92:7: warning: function might be candidate for attribute 'malloc' [-Wsuggest-attribute=malloc]
   92 | FILE *safe_open_rw(const char *file, int privkey_op)

certtool-common.c:92:7: warning: function might be candidate for attribute 'malloc' [-Wsuggest-attribute=malloc]
   92 | FILE *safe_open_rw(const char *file, int privkey_op)
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1606#note_1027694681
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20220715/48092c41/attachment.html>


More information about the Gnutls-devel mailing list