hello

compile 
[https://github.com/nim-lang/ui/blob/master/examples/table.nim](https://github.com/nim-lang/ui/blob/master/examples/table.nim)
    
    
    /home/soleil/snap/code/common/.cache/nim/table_r/table.nim.c:294:1: 
warning: type of ‘uiTableValueInt’ does not match original declaration 
[-Wlto-type-mismatch]
      294 | N_CDECL(NI, 
uiTableValueInt)(tyObject_TableValue__ny04oVd89akfde6WntopneQ* v);
          | ^
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:83:5: note: 
return value type mismatch
       83 | int uiTableValueInt(const uiTableValue *v)
          |     ^
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:83:5: note: 
type ‘int’ should match type ‘NI’
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:83:5: note: 
‘uiTableValueInt’ was previously declared here
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:83:5: note: 
code may be misoptimized unless ‘-fno-strict-aliasing’ is used
    
    
    Run

or
    
    
    /home/soleil/snap/code/common/.cache/nim/table_r/table.nim.c:287:1: 
warning: type of ‘uiNewTableValueInt’ does not match original declaration 
[-Wlto-type-mismatch]
      287 | N_CDECL(tyObject_TableValue__ny04oVd89akfde6WntopneQ*, 
uiNewTableValueInt)(NI i);
          | ^
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:74:15: 
note: type mismatch in parameter 1
       74 | uiTableValue *uiNewTableValueInt(int i)
          |               ^
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:74:15: 
note: type ‘int’ should match type ‘NI’
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:74:15: 
note: ‘uiNewTableValueInt’ was previously declared here
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:74:15: 
note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
    /home/soleil/snap/code/common/.cache/nim/table_r/table.nim.c:294:1: 
warning: type of ‘uiTableValueInt’ does not match original declaration 
[-Wlto-type-mismatch]
      294 | N_CDECL(NI, 
uiTableValueInt)(tyObject_TableValue__ny04oVd89akfde6WntopneQ* v);
          | ^
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:83:5: note: 
return value type mismatch
       83 | int uiTableValueInt(const uiTableValue *v)
          |     ^
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:83:5: note: 
type ‘int’ should match type ‘NI’
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:83:5: note: 
‘uiTableValueInt’ was previously declared here
    /home/soleil/.nimble/pkgs/ui-0.9.4/ui/libui/common/tablevalue.c:83:5: note: 
code may be misoptimized unless ‘-fno-strict-aliasing’ is used
    
    
    Run

Reply via email to