Code Monkey home page Code Monkey logo

Comments (5)

jiangzhuti avatar jiangzhuti commented on May 9, 2024

还有一处
lib_acl_cpp/src/serialize/gsoner.cpp:1376:5: error: this statement may fall through [-Werror=implicit-fallthrough=]
if(check_comment())
^~

此问题已经修复,将 switch 替换成 if 条件语句解决了。

from acl.

jiangzhuti avatar jiangzhuti commented on May 9, 2024

还有一处。。
/tmp/acl-acl.3.4.1/lib_acl_cpp/src/stdlib/charset_conv.cpp: In member function ‘bool acl::charset_conv::update_begin(const char*, const char*)’:
/tmp/acl-acl.3.4.1/lib_acl_cpp/src/stdlib/charset_conv.cpp:277:20: error: passing argument 2 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
__iconv(m_iconv, &pNil, &zero, &pNil, &zero);
^~~~~ ~~~~~
iconv的四个指针参数全部是__restric__修饰,这里实参是同样的变量就会有编译问题。
man 3 iconv:
A third case is when inbuf is NULL or *inbuf is NULL, and outbuf is NULL or *outbuf is NULL. In this case, the iconv() function sets cd's conversion state to the initial state.

直接设置4个NULL应该就行了

from acl.

jiangzhuti avatar jiangzhuti commented on May 9, 2024

/tmp/acl-acl.3.4.1/lib_fiber/c/src/hook/io.c:708:9: error: no previous prototype for ‘readv’ [-Werror=missing-prototypes]
ssize_t readv(socket_t fd, const struct iovec *iov, int iovcnt)

readv在posix中规定了位于<sys/uio.h>,这个在04版的posix就有了,应该加进stdafx.h中

已添加。

from acl.

jiangzhuti avatar jiangzhuti commented on May 9, 2024

/tmp/acl-acl.3.4.1/lib_fiber/c/src/dns/dns.c:223:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
#if HAVE_STATIC_ASSERT
^~~~~~~~~~~~~~~~~~

需要用defined(HAVE_STATIC_ASSERT)包起来

已修改。

from acl.

jiangzhuti avatar jiangzhuti commented on May 9, 2024

给郑老师点赞!

from acl.

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.