Bug 499148 - cert.h doesn't have valid functions prototypes
cert.h doesn't have valid functions prototypes
Status: CLOSED UPSTREAM
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nss (Show other bugs)
5.3
All Linux
medium Severity medium
: rc
: ---
Assigned To: Kai Engert (:kaie)
BaseOS QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-05 08:07 EDT by Jan Friesse
Modified: 2009-05-07 16:01 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-05-07 16:01:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch fixing this problem (1.09 KB, patch)
2009-05-05 08:07 EDT, Jan Friesse
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Mozilla Foundation 491919 None None None Never

  None (edit)
Description Jan Friesse 2009-05-05 08:07:08 EDT
Created attachment 342444 [details]
Patch fixing this problem

Description of problem:
cert.h doesn't have valid function prototypes. For example CERT_GetPKIXVerifyNistRevocationPolicy() should be CERT_GetPKIXVerifyNistRevocationPolicy(void). Attached patch will say you more.

Version-Release number of selected component (if applicable):
nss-devel-3.12.2.0-4.el5

How reproducible:
always

Steps to Reproduce:
1. write main.c with
#include <cert.h>

int main(void) {
  return 0;
}

2.

gcc `pkg-config --libs --cflags nss` -Wstrict-prototypes main.c

  
Actual results:
/usr/include/nss3/cert.h:1608: warning: function declaration isn’t a prototype
/usr/include/nss3/cert.h:1614: warning: function declaration isn’t a prototype
/usr/include/nss3/cert.h:1620: warning: function declaration isn’t a prototype
/usr/include/nss3/cert.h:1654: warning: function declaration isn’t a prototype

Expected results:
No warnings displayed

Additional info:
Patch included.
Comment 1 Kai Engert (:kaie) 2009-05-07 16:01:37 EDT
Thanks for the report.

Bug forwarded to upstream:
https://bugzilla.mozilla.org/show_bug.cgi?id=491919

I assume you can wait until upstream fixes this warning.
Closing as upstream.

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