warning: a function declaration without a prototype is deprecated in all versions of C
Running the MacPorts base tests on Ventura reminds us of a number of problems:
tests/empty.c:1:9: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void foo() {}
^
void
tests/libmachista-test.c:347:9: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int main() {
^
void
./../darwintrace.h:98:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void __darwintrace_setup();
^
void
./../darwintrace.h:106:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void __darwintrace_close();
^
void
./../darwintrace.h:176:39: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
static inline FILE *__darwintrace_sock() {
^
void
./../darwintrace.h:195:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void __darwintrace_setup_tls();
^
void
./../darwintrace.h:200:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void __darwintrace_store_env();
^
void
./../darwintrace.h:207:36: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void __darwintrace_run_constructors() __attribute__((constructor));
^
void
6 warnings generated.
Change History (4)
Owner: |
set to chrstphrchvz
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
Fix proposed in https://github.com/macports/macports-base/pull/302, which also takes care of a few encountered during
make all
of base (excluding those invendor
):