[GHC] #8872: hsc cast size warnings on 32-bit Linux
GHC
ghc-devs at haskell.org
Mon Mar 10 14:40:02 UTC 2014
#8872: hsc cast size warnings on 32-bit Linux
------------------------------------+-------------------------------------
Reporter: Fuuzetsu | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: hsc2hs | Version: 7.9
Keywords: | Operating System: Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
------------------------------------+-------------------------------------
When compiling the gtk package with GHC 7.9.20140308 I get a bunch of
warnings as outlined below. I'm on 32-bit system. Apparently this is
something that should be reported.
{{{
In file included from dist/dist-sandbox-
c4fc5f8b/build/Graphics/UI/Gtk/General/Structs_hsc_make.c:1:0:
Structs.hsc: In function ‘main’:
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%lld", (long long)(x)); \
^
Structs.hsc:1020:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%llu", (unsigned long long)(x));
^
Structs.hsc:1020:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%lld", (long long)(x)); \
^
Structs.hsc:1025:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%llu", (unsigned long long)(x));
^
Structs.hsc:1025:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%lld", (long long)(x)); \
^
Structs.hsc:1029:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%llu", (unsigned long long)(x));
^
Structs.hsc:1029:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%lld", (long long)(x)); \
^
Structs.hsc:1033:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%llu", (unsigned long long)(x));
^
Structs.hsc:1033:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%lld", (long long)(x)); \
^
Structs.hsc:1037:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%llu", (unsigned long long)(x));
^
Structs.hsc:1037:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%lld", (long long)(x)); \
^
Structs.hsc:1042:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%llu", (unsigned long long)(x));
^
Structs.hsc:1042:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%lld", (long long)(x)); \
^
Structs.hsc:1046:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%llu", (unsigned long long)(x));
^
Structs.hsc:1046:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:36:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%lld", (long long)(x)); \
^
Structs.hsc:1051:5: note: in expansion of macro ‘hsc_const’
/home/shana/ghc-20140308/lib/ghc-7.9.20140308/template-hsc.h:38:29:
warning: cast from pointer to integer of different size [-Wpointer-to-int-
cast]
hsc_printf ("%llu", (unsigned long long)(x));
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8872>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list