Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2166

Use void keyword in prototypes for functions that take no parameters

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.15.0
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: