Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

tls-gnutls: error: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result #5532

Description

@paulmenzel

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609 gives the error below.

Making all in cups...
[…]
Compiling tls.c...
In file included from tls.c:39:0:
tls-gnutls.c: In function ‘httpCredentialsAreValidForName’:
tls-gnutls.c:420:56: error: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
           if (!gnutls_x509_crl_get_crt_serial(tls_crl, (unsigned)i, rserial, &r
                                                        ^
cc1: all warnings being treated as errors

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions