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@lists.freedesktop.org
        ReportedBy: alexandre.f.dem...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to