Closed Bug 491919 Opened 15 years ago Closed 15 years ago

cert.h doesn't have valid functions prototypes

Categories

(NSS :: Libraries, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
3.12.4

People

(Reporter: KaiE, Assigned: julien.pierre)

Details

Attachments

(1 file)

Forwarded from https://bugzilla.redhat.com/show_bug.cgi?id=499148

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.

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
Attached patch Patch v1Splinter Review
I'm simply forwarding this bug and patch.

If you agree, can you please r+ and commit?
Thanks.
Attachment #376295 - Flags: review?(alexei.volkov.bugs)
Comment on attachment 376295 [details] [diff] [review]
Patch v1

r=alexei
Attachment #376295 - Flags: review?(alexei.volkov.bugs) → review+
Checking in cert.h;
/cvsroot/mozilla/security/nss/lib/certdb/cert.h,v  <--  cert.h
new revision: 1.78; previous revision: 1.77
done
Assignee: nobody → julien.pierre.boogz
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.12.4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: