Code Monkey home page Code Monkey logo

Comments (2)

mia0x75 avatar mia0x75 commented on May 30, 2024

comment the following code in cstl_lib.h

extern struct cstl_map* cstl_map_new( cstl_compare fn_c_k, cstl_destroy fn_k_d, cstl_destroy fn_v_d);
//extern cstl_error   cstl_map_insert(struct cstl_map* pMap, const void* key, size_t key_size, const void* value, size_t value_size);
//extern cstl_bool    cstl_map_exists ( struct cstl_map* pMap, void* key);
//extern cstl_error   cstl_map_replace( struct cstl_map* pMap, void* key, void* value,  size_t value_size);
//extern cstl_error   cstl_map_remove ( struct cstl_map* pMap, void* key);
extern const void * cstl_map_find   ( struct cstl_map* pMap, const void* key);
//extern cstl_error   cstl_map_delete ( struct cstl_map* pMap);

I can compile it without any error, but if I comment next two lines

//extern struct cstl_iterator* cstl_map_new_iterator(struct cstl_map* pMap);
//extern void cstl_map_delete_iterator ( struct cstl_iterator* pItr);

I get

[ 88%] Building C object src/CMakeFiles/ssr-local.dir/ssr_executive.c.o
/root/shadowsocksr-native/src/ssr_executive.c: In function ‘obj_map_create’:
/root/shadowsocksr-native/src/ssr_executive.c:220:5: warning: return makes pointer from integer without a cast [enabled by default]
     return cstl_map_new(compare_key, destroy_key, destroy_value);
     ^
/root/shadowsocksr-native/src/ssr_executive.c: In function ‘obj_map_find’:
/root/shadowsocksr-native/src/ssr_executive.c:244:5: warning: return makes pointer from integer without a cast [enabled by default]
     return cstl_map_find(map, key);
     ^
/root/shadowsocksr-native/src/ssr_executive.c: In function ‘obj_map_traverse’:
/root/shadowsocksr-native/src/ssr_executive.c:253:14: warning: assignment makes pointer from integer without a cast [enabled by default]
     iterator = cstl_map_new_iterator(map);
              ^

from shadowsocksr-native.

mia0x75 avatar mia0x75 commented on May 30, 2024

Looks like the issue is fixed now, thanks.

from shadowsocksr-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.