Bug 1956773 - Strict prototype error when trying to compile nss code that includes blapi.h
Summary: Strict prototype error when trying to compile nss code that includes blapi.h
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nss
Version: 8.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: beta
: ---
Assignee: nss-nspr-maint
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-04 11:43 UTC by Ivan Nikolchev
Modified: 2021-05-13 14:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

Description Ivan Nikolchev 2021-05-04 11:43:46 UTC
Description of problem:
Compiling nss code that includes blapi.h throws 'function declaration isn’t a prototype' error

Version-Release number of selected component (if applicable):
nss-3.53.1-17.el8_3.x86_64

How reproducible:
always

Steps to Reproduce:
Try to compile the next snippet:

#include <blapi.h>
int main(void){
    return 0;
};

gcc test.c -o test -I /usr/include/nss3/ -I /usr/include/nspr4/ -lnss3 -lnspr4 -Werror=strict-prototypes

Actual results:
/usr/include/nss3/blapi.h:1505:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes]

Expected results:
no errors

Additional info:


Note You need to log in before you can comment on or make changes to this bug.