• linux下编译nginx-1.10.1报错:src/http/ngx_http_parse.c:1384:32: warning: this statement may fall through [-Wimplicit-fallthrough=]


    linux下编译nginx-1.10.1报错:src/http/ngx_http_parse.c:1384:32: warning: this statement may fall through [-Wimplicit-fallthrough=]

    原因:gcc编译版本问题导致。

    解决办法:

    解决办法:进入到/root/nginpage/nginx-1.10.1/objs/目录下(解压的目录)
    打开编辑文件Makefile,找到有一下内容的这行:
    CFLAGS = -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
    把这行内容中的后面加上-Wno-implicit-fallthrough 即可忽略gcc7编译时switch-case中缺少break的错误。

  • 相关阅读:
    页面性能
    js运行机制
    渲染机制
    通信类
    js面向对象 继承
    原型
    [HEOI2016/TJOI2016]求和
    「NOIP2018 保卫王国」
    「LGP4719【模板】动态dp」
    多项式进阶操作
  • 原文地址:https://www.cnblogs.com/cg-take/p/13215202.html
Copyright © 2020-2023  润新知