Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4523

Use void keyword in prototypes for functions that take no parameters

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      This satisfies build warnings when compiling with -Wstrict-prototypes.

      I came across this in mongodb/mongo-php-driver#1381 and looked through PHPC, libmongoc, and libmongocrypt for occurrences to fix. See also: Stack Overflow discussion.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: