MantisBT - Doomseeker |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0003504 | Doomseeker | [All Projects] Bug | public | 2018-09-21 15:11 | 2018-10-06 18:19 |
|
Reporter | WubTheCaptain | |
Assigned To | WubTheCaptain | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | amd64 | OS | Debian GNU/Linux | OS Version | buster/sid |
Product Version | 1.2 | |
Target Version | 1.2 | Fixed in Version | 1.2 | |
|
Summary | 0003504: updaterevision: Implicit function declarations of popen(), pclose(), implicit int conversion |
Description | $ gcc -std=c99 tools/updaterevision/updaterevision.c
tools/updaterevision/updaterevision.c: In function ‘main’:
tools/updaterevision/updaterevision.c:65:11: warning: implicit declaration of function ‘popen’; did
you mean ‘fopen’? [-Wimplicit-function-declaration]
stream = popen("hg log --template \"{latesttag}-{latesttagdistance}-{node|short}\\n\"
--rev . && hg log -r. --template \"{date|isodatesec}*{node}?{date|hgdate}\\n\" &&
hg identify -n", "r");
^~~~~
fopen
tools/updaterevision/updaterevision.c:65:9: warning: assignment to ‘FILE *’ {aka ‘struct _IO_FILE
*’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
stream = popen("hg log --template \"{latesttag}-{latesttagdistance}-{node|short}\\n\"
--rev . && hg log -r. --template \"{date|isodatesec}*{node}?{date|hgdate}\\n\" &&
hg identify -n", "r");
^
tools/updaterevision/updaterevision.c:92:3: warning: implicit declaration of function ‘pclose’; did
you mean ‘fclose’? [-Wimplicit-function-declaration]
pclose(stream);
^~~~~~
fclose |
Steps To Reproduce | |
Additional Information | Caused by lack of #define _XOPEN_SOURCE 700 (or _POSIX_C_SOURCE >=2).
- libc6 2.27 (glibc)
- gcc-7 7.3.0 (GCC)
|
Tags | No tags attached. |
Relationships | |
Attached Files | 0001-updaterevision-Add-required-feature-test-macro-for-glibc.patch (1,108) 2018-09-21 15:28 https://zandronum.com/tracker/file_download.php?file_id=2402&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2018-09-21 15:11 | WubTheCaptain | New Issue | |
2018-09-21 15:11 | WubTheCaptain | Status | new => assigned |
2018-09-21 15:11 | WubTheCaptain | Assigned To | => WubTheCaptain |
2018-09-21 15:28 | WubTheCaptain | File Added: 0001-updaterevision-Add-required-feature-test-macro-for-glibc.patch | |
2018-09-21 15:28 | WubTheCaptain | Status | assigned => needs review |
2018-09-21 15:31 | WubTheCaptain | Note Added: 0019598 | |
2018-09-21 17:32 | Zalewa | Note Added: 0019600 | |
2018-09-22 01:04 | WubTheCaptain | Status | needs review => resolved |
2018-09-22 01:04 | WubTheCaptain | Resolution | open => fixed |
2018-09-22 01:04 | WubTheCaptain | Fixed in Version | => 1.2 |
2018-10-06 18:19 | WubTheCaptain | Status | resolved => closed |