Strict prototype error when trying to compile nss code that includes blapi.h
Categories
(NSS :: Libraries, defect, P3)
Tracking
(Not tracked)
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.
Assignee | ||
Comment 1•3 years ago
|
||
in blapi.h, strict prototypes compiles fail on:
extern BLAKE2BContext *BLAKE2B_NewContext();
This patch fixes that problem.
Comment 2•3 years ago
|
||
Description
•