[GHC] #12636: ProfHeap's printf modifiers are incorrect
GHC
ghc-devs at haskell.org
Wed Sep 28 18:10:57 UTC 2016
#12636: ProfHeap's printf modifiers are incorrect
----------------------------------------+---------------------------------
Reporter: Phyx- | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 8.0.1
Keywords: newcomer | Operating System: Windows
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
----------------------------------------+---------------------------------
during compile I noticed
{{{
rts\ProfHeap.c: In function 'dumpCensus':
rts\ProfHeap.c:768:26: error:
warning: format '%lu' expects argument of type 'long unsigned int',
but argument 3 has type 'long long unsigned int' [-Wformat=]
fprintf(hp_file, "VOID\t%lu\n",
^
rts\ProfHeap.c:770:26: error:
warning: format '%lu' expects argument of type 'long unsigned int',
but argument 3 has type 'long long unsigned int' [-Wformat=]
fprintf(hp_file, "LAG\t%lu\n",
^
rts\ProfHeap.c:772:26: error:
warning: format '%lu' expects argument of type 'long unsigned int',
but argument 3 has type 'long long unsigned int' [-Wformat=]
fprintf(hp_file, "USE\t%lu\n",
^
rts\ProfHeap.c:774:26: error:
warning: format '%lu' expects argument of type 'long unsigned int',
but argument 3 has type 'long long unsigned int' [-Wformat=]
fprintf(hp_file, "INHERENT_USE\t%lu\n",
^
rts\ProfHeap.c:776:26: error:
warning: format '%lu' expects argument of type 'long unsigned int',
but argument 3 has type 'long long unsigned int' [-Wformat=]
fprintf(hp_file, "DRAG\t%lu\n",
^
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12636>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list