MantisBT - Doomseeker |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0003497 | Doomseeker | [All Projects] Bug | public | 2018-09-18 21:32 | 2018-10-06 18:19 |
|
Reporter | WubTheCaptain | |
Assigned To | WubTheCaptain | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | amd64 | OS | OpenBSD | OS Version | 6.4-current |
Product Version | 1.2 | |
Target Version | 1.2 | Fixed in Version | 1.2 | |
|
Summary | 0003497: updaterevision: Printing HG_REVISION_NUMBER uses incorrect typedef formatting for hgdate |
Description | [ 0%] Building C object tools/updaterevision/CMakeFiles/updaterevision.dir/updaterevision.c.o
/home/doomseeker/.local/src/doomseeker/tools/updaterevision/updaterevision.c:161:56: warning:
format specifies type 'unsigned long' but the argument has type 'time_t'
(aka 'long long') [-Wformat]
fprintf (stream, "#define HG_REVISION_NUMBER %lu\n", hgdate);
~~~ ^~~~~~
%lld
1 warning generated. |
Steps To Reproduce | cmake and gmake the source with appropriate packages installed. Clang 6.0.0. |
Additional Information | Introduced into code with ticket 0003386, commit eb2a08c6a03d23ab9aca8c894dd115dbbe60d7d2. |
Tags | No tags attached. |
Relationships | related to | 0003386 | closed | Blzut3 | updaterevision: gcc compiler warns of tempnam usage, recommends mkstemp |
|
Attached Files | 0001-updaterevision-Fix-HG_REVISION_NUMBER-format-type.patch (1,026) 2018-09-18 21:40 https://zandronum.com/tracker/file_download.php?file_id=2392&type=bug
0001-updaterevision-Fix-hgdate-data-type-to-signed-64-bit-int.patch (999) 2018-09-21 15:00 https://zandronum.com/tracker/file_download.php?file_id=2401&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2018-09-18 21:32 | WubTheCaptain | New Issue | |
2018-09-18 21:33 | WubTheCaptain | Assigned To | => WubTheCaptain |
2018-09-18 21:33 | WubTheCaptain | Status | new => assigned |
2018-09-18 21:40 | WubTheCaptain | File Added: 0001-updaterevision-Fix-HG_REVISION_NUMBER-format-type.patch | |
2018-09-18 21:40 | WubTheCaptain | Status | assigned => needs review |
2018-09-18 21:41 | WubTheCaptain | Note Added: 0019548 | |
2018-09-18 21:42 | WubTheCaptain | Product Version | => 1.2 |
2018-09-18 21:45 | WubTheCaptain | Additional Information Updated | bug_revision_view_page.php?rev_id=11820#r11820 |
2018-09-18 21:45 | WubTheCaptain | Relationship added | related to 0003386 |
2018-09-20 17:00 | Zalewa | Note Added: 0019585 | |
2018-09-21 14:52 | WubTheCaptain | Status | needs review => assigned |
2018-09-21 15:00 | WubTheCaptain | File Added: 0001-updaterevision-Fix-hgdate-data-type-to-signed-64-bit-int.patch | |
2018-09-21 15:00 | WubTheCaptain | Note Added: 0019597 | |
2018-09-21 15:00 | WubTheCaptain | Status | assigned => needs review |
2018-09-21 17:21 | Zalewa | Note Added: 0019599 | |
2018-09-21 17:21 | Zalewa | Note Edited: 0019599 | bug_revision_view_page.php?bugnote_id=19599#r11881 |
2018-09-22 01:05 | WubTheCaptain | Note Added: 0019603 | |
2018-09-22 01:05 | WubTheCaptain | Status | needs review => needs testing |
2018-09-22 01:24 | WubTheCaptain | Target Version | => 1.2 |
2018-09-22 01:29 | WubTheCaptain | Note Added: 0019608 | |
2018-09-22 01:29 | WubTheCaptain | Status | needs testing => resolved |
2018-09-22 01:29 | WubTheCaptain | Fixed in Version | => 1.2 |
2018-09-22 01:29 | WubTheCaptain | Resolution | open => fixed |
2018-10-06 18:19 | WubTheCaptain | Status | resolved => closed |
Notes |
|
|
Patch by me, attached. Tested on GNU/Linux. |
|
|
(0019585)
|
Zalewa
|
2018-09-20 17:00
|
|
Perhaps to ensure that time_t type fits %lld, it also should be cast to (long long) in that printf() statement? |
|
|
|
Good idea Zalewa. 0001-updaterevision-Fix-hgdate-data-type-to-signed-64-bit-int.patch |
|
|
(0019599)
|
Zalewa
|
2018-09-21 17:21
|
|
|
|
|
Needs testing on OpenBSD. |
|
|
|
All good on both Debian GNU/Linux and OpenBSD. An unrelated strcpy() issue has ticket 0003498. |
|