Commit 61c9bd2
authored
Remove injection of
I believe this change in the defaults was probably don't back in the day
when mismatched function pointers were not otherwise will reported and
could lead to hard-to-debug crashes. These days the linker will five a
clear error about function signature mistmatches between object files so
I think the deviation is no longer worth it.
This change only effect C and not C++.
Note: Adding this extra warning actually has some cost because it
requires us to understand if the compiler is running C or C++ mode. This
is more complicated than is can seem because its possible to specify
more than one language mode on the command line. e.g:
clang -x c++ myfile.cpp -x c myfile.c
We don't currently have great support for this method, and its obviously
not common.-Werror=implicit-function-declaration (emscripten-core#23465)1 parent 996793f commit 61c9bd2
3 files changed
+2
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
| 427 | + | |
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | 451 | | |
463 | 452 | | |
464 | 453 | | |
| |||
984 | 973 | | |
985 | 974 | | |
986 | 975 | | |
987 | | - | |
988 | 976 | | |
989 | 977 | | |
990 | | - | |
| 978 | + | |
991 | 979 | | |
992 | 980 | | |
993 | 981 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5368 | 5368 | | |
5369 | 5369 | | |
5370 | 5370 | | |
5371 | | - | |
5372 | | - | |
5373 | | - | |
5374 | | - | |
5375 | | - | |
5376 | | - | |
5377 | | - | |
5378 | | - | |
5379 | | - | |
5380 | | - | |
5381 | | - | |
5382 | | - | |
5383 | 5371 | | |
5384 | 5372 | | |
5385 | 5373 | | |
| |||
0 commit comments