The following error occurred when we were compiling make on other x86 systems

CC adlist.o
CC quicklist.o
CC ae.o
CC anet.o
CC dict.o
CC server.o
CC sds.o
CC zmalloc.o
CC lzf_c.o
CC lzf_d.o

lzf_d.c:57:32: 警告:‘#pragma GCC diagnostic’后选项未知 [-Wpragmas] #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" ^~~~~~~~~~~~~~~~~~~~~~~~ CC pqsort.o CC zipmap.o

[root@cs5 redis-6.0.9]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit

gcc version 6.1.0 (GCC)

ERROR: lzf_d.c:57:32: warning:‘#pragma GCC diagnostic’Post option unknown [-Wpragmas] #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" ^~~~~~~~~~~~~~~~~~~~~~~~

Comment From: itamarhaber

Hello @namehuanxin - would it be possible to get more information on how to reproduce this? Specifically, what do you mean by "other systems"?

Comment From: oranagra

looks like dac26729a9 is gonna resolve it. please check 6.2 or try to apply that patch.

Comment From: namehuanxin

@itamarhaber The system we use is called NeoKylin, which you may not have heard of, but is similar to Centos7

Comment From: oranagra

@namehuanxin can you please confirm that the above mentioned fix solve the problem?

Comment From: oranagra

probably already resolved by dac2672 . feel free to reopen if not the case.