Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-13085

win32ss/printing: In C, functions taking no parameters (void) should be marked as such

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.8
    • Component/s: Win32SS
    • Labels:
      None

      Description

      In C, functions taking no parameters (void) should be marked as such:

      INT FunctionFoo(void)  // Instead of: INT FunctionFoo()
      { ... return 0; }

      and similar for their prototypes in .h files. This is because the empty parentheses in prototypes mean "any number of parameters" instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Colin Finck Colin Finck
                Reporter:
                hbelusca hbelusca
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: