View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000880 | LDMud 3.6 | LPC Compiler/Preprocessor | public | 2020-07-27 23:22 | 2020-09-01 20:38 |
Reporter | zesstra | Assigned To | Gnomi | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x86_64 | OS | GNU/Linux | OS Version | 0 |
Product Version | 3.6.2 | ||||
Target Version | 3.6.3 | Fixed in Version | 3.6.3 | ||
Summary | 0000880: Repeated calls to undefined function trigger warning due to strict_types without strict_types being in effect. | ||||
Description | When calling an undefined function twice (!) as part of an expression in the arguments to a callother, in addition to the error message "Undefined function ...", the warning "Function call result must be casted due to pragma strict_types" ist triggered. Compiling this code fragment: int seite; mixed test() { this_player()->more(buchdir()+"seite"+seite); this_player()->more(buchdir()+"titel"); return 1; } causes the errors: players/zesstra/foo.c line 5 before '+"seite"+s': Undefined function 'buchdir' players/zesstra/foo.c line 6 before '+"titel");': Function buchdir undefined players/zesstra/foo.c line 6 before ';': Function call result must be casted due to pragma strict_types This is certainly confusing. However, I am not sure, whether it warrants fixing since compiler errors after the first one are often not reliable. | ||||
Tags | No tags attached. | ||||
|
https://github.com/amotzkau/ldmud/commit/826bf5bdecea904face452b6df006fe542958d8f |
|
Ah, yes. Makes sense. I cherry-picked it into the driver we will use tomorrow for reboot. |
|
Executing the following code reproduces the issue as well: create() { unknown_function(this_object()); } testfun() { return (!unknown_function(previous_object())); } |
|
It should be noted, that this is with a driver containing the commit https://github.com/amotzkau/ldmud/commit/826bf5bdecea904face452b6df006fe542958d8f |
|
Improved commit: https://github.com/amotzkau/ldmud/commit/055f19c9fef3388f812fbe1f51e24c16ea5ad7a5 |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-07-27 23:22 | zesstra | New Issue | |
2020-07-28 15:15 | Gnomi | Assigned To | => Gnomi |
2020-07-28 15:15 | Gnomi | Status | new => assigned |
2020-07-28 15:15 | Gnomi | Note Added: 0002536 | |
2020-07-28 21:25 | zesstra | Note Added: 0002537 | |
2020-08-06 13:29 | Rastullah | Note Added: 0002540 | |
2020-08-06 17:11 | zesstra | Note Added: 0002541 | |
2020-08-06 17:54 | Gnomi | Note Added: 0002542 | |
2020-09-01 20:38 | Gnomi | Status | assigned => resolved |
2020-09-01 20:38 | Gnomi | Resolution | open => fixed |
2020-09-01 20:38 | Gnomi | Fixed in Version | => 3.6.3 |