@@ -149,14 +149,17 @@ Improvements to Clang's diagnostics
149149 now only diagnose deprecated declarations and definitions of functions
150150 without a prototype where the behavior in C2x will remain correct. This
151151 diagnostic remains off by default but is now enabled via ``-pedantic `` due to
152- it being a deprecation warning. ``-Wdeprecated-non-prototype `` will diagnose
153- cases where the deprecated declarations or definitions of a function without
154- a prototype will change behavior in C2x. Additionally, it will diagnose calls
155- which pass arguments to a function without a prototype. This warning is
156- enabled only when the ``-Wdeprecated-non-prototype `` option is enabled at the
157- function declaration site, which allows a developer to disable the diagnostic
158- for all callers at the point of declaration. This diagnostic is grouped under
159- the ``-Wstrict-prototypes `` warning group, but is enabled by default.
152+ it being a deprecation warning. ``-Wstrict-prototypes `` has no effect in C2x
153+ or when ``-fno-knr-functions `` is enabled. ``-Wdeprecated-non-prototype ``
154+ will diagnose cases where the deprecated declarations or definitions of a
155+ function without a prototype will change behavior in C2x. Additionally, it
156+ will diagnose calls which pass arguments to a function without a prototype.
157+ This warning is enabled only when the ``-Wdeprecated-non-prototype `` option
158+ is enabled at the function declaration site, which allows a developer to
159+ disable the diagnostic for all callers at the point of declaration. This
160+ diagnostic is grouped under the ``-Wstrict-prototypes `` warning group, but is
161+ enabled by default. ``-Wdeprecated-non-prototype `` has no effect in C2x or
162+ when ``-fno-knr-functions `` is enabled.
160163- Clang now appropriately issues an error in C when a definition of a function
161164 without a prototype and with no arguments is an invalid redeclaration of a
162165 function with a prototype. e.g., ``void f(int); void f() {} `` is now properly
0 commit comments