Closed Bug 1712211 Opened 3 years ago Closed 3 years ago

Strict prototype error when trying to compile nss code that includes blapi.h

Categories

(NSS :: Libraries, defect, P3)

3.66

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rrelyea, Assigned: rrelyea)

Details

Attachments

(1 file)

A number of applications build using NSS public headers. Those application often build with --strict-prototypes in the command line, which requires void functions to have the explicit 'void' in the function prototype: example:
foo(void) --- good
foo() --- bad

We recently added a function to a public header that didn't have a void and had to go back and fix it after we released NSS. To prevent this, we added tests to our downstream test suite to make sure that all the public headers pass --strict-prototypes. We found that there is one function prototype in blapi.h ( BLAKE2B_NewContext()) that doesn't pass, so for consistency we should fix that prototype.

in blapi.h, strict prototypes compiles fail on:
extern BLAKE2BContext *BLAKE2B_NewContext();

This patch fixes that problem.

Assignee: nobody → rrelyea
Severity: -- → S4
Status: NEW → RESOLVED
Closed: 3 years ago
Priority: -- → P3
Resolution: --- → FIXED
Target Milestone: --- → 3.66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: