[Mesa-dev] [Bug 45905] New: error: cast from ‘void*’ to ‘intptr_t {aka int}’ loses precision [-fpermissive] in ast_to_hir.cpp

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Feb 10 09:15:58 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=45905

             Bug #: 45905
           Summary: error: cast from ‘void*’ to ‘intptr_t {aka int}’ loses
                    precision [-fpermissive] in ast_to_hir.cpp
    Classification: Unclassified
           Product: Mesa
           Version: git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: alexandre.f.demers at gmail.com


g++ -c -I. -I../mesa -I../mapi -I../../include  -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp -m64  -fPIC  -D_GNU_SOURCE -DPTHREADS
-DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DIN_DRI_DRIVER -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -DHAVE_XEXTPROTO_71 
-DFEATURE_GL=1 -DFEATURE_ES1=1 -DFEATURE_ES2=1 -fvisibility=hidden -D_GNU_SOURCE -DPTHREADS -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DMESA_SELINUX
-DIN_DRI_DRIVER -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS
-DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -DHAVE_XEXTPROTO_71  -DFEATURE_GL=1 -DFEATURE_ES1=1 -DFEATURE_ES2=1
ast_to_hir.cpp -o ast_to_hir.o
In file included from ast_to_hir.cpp:57:0:
../mesa/program/hash_table.h: In member function ‘bool string_to_uint_map::get(unsigned int&, const char*)’:
../mesa/program/hash_table.h:238:58: error: cast from ‘void*’ to ‘intptr_t {aka int}’ loses precision [-fpermissive]
../mesa/program/hash_table.h: In member function ‘void string_to_uint_map::put(unsigned int, const char*)’:
../mesa/program/hash_table.h:262:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
ast_to_hir.cpp: In member function ‘virtual ir_rvalue* ast_case_label::hir(exec_list*, _mesa_glsl_parse_state*)’:
ast_to_hir.cpp:3721:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
ast_to_hir.cpp:3734:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
make[2]: *** [ast_to_hir.o] Error 1

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list