Skip to content

Fix some -Wimplicit-function-declaration errors on Windows#15325

Merged
cmb69 merged 1 commit intophp:masterfrom
cmb69:cmb/undeclared-win
Aug 10, 2024
Merged

Fix some -Wimplicit-function-declaration errors on Windows#15325
cmb69 merged 1 commit intophp:masterfrom
cmb69:cmb/undeclared-win

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Aug 10, 2024

While clang is picky about these, MSVC doesn't seem to care and would only report the calls to undeclared functions as errors during link time. Still, obviously, MSVC is fine with having the declarations during compile time.


Note that these fixes all such errors for a full build of all self-contained extensions (i.e. those which don't require external libraries), except for ext/com_dotnet (which throws link errors), and the undeclared _AddressOfReturnAddress() in zend_call_stack.h which is due to 36857ab (need to figure out what that is about).

While clang is picky about these, MSVC doesn't seem to care and would
only report the calls to undeclared functions as errors during link
time.  Still, obviously, MSVC is fine with having the declarations
during compile time.
@cmb69 cmb69 merged commit 9c537de into php:master Aug 10, 2024
@cmb69 cmb69 deleted the cmb/undeclared-win branch August 12, 2024 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants