Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003504Doomseeker[All Projects] Bugpublic2018-09-21 15:112018-10-06 18:19
ReporterWubTheCaptain 
Assigned ToWubTheCaptain 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platformamd64OSDebian GNU/LinuxOS Versionbuster/sid
Product Version1.2 
Target Version1.2Fixed in Version1.2 
Summary0003504: 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
Additional InformationCaused by lack of #define _XOPEN_SOURCE 700 (or _POSIX_C_SOURCE >=2).

  1. libc6 2.27 (glibc)
  2. gcc-7 7.3.0 (GCC)
Attached Filespatch file icon 0001-updaterevision-Add-required-feature-test-macro-for-glibc.patch [^] (1,108 bytes) 2018-09-21 15:28 [Show Content]

- Relationships

-  Notes
User avatar (0019598)
WubTheCaptain (reporter)
2018-09-21 15:31

Patch by me, attached. Public domain.
User avatar (0019600)
Zalewa (developer)
2018-09-21 17:32

Merged:'https://bitbucket.org/Doomseeker/doomseeker/commits/bbf6a8bc671545a9153eb3b7196cfe425f86c7b0 [^]'

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- 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






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker