]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: silence not allow register storage class specifier warning 19859/head
authorYao Zongyou <yaozongyou@vip.qq.com>
Tue, 9 Jan 2018 08:05:11 +0000 (16:05 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Tue, 9 Jan 2018 08:05:11 +0000 (16:05 +0800)
The register keyword was deprecated in C++11, so remove it.

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
src/rgw/CMakeLists.txt

index f01dff917ed24572ca6e32d45d5a823ebdb7f0b4..df588cc27c311e35c5e3c8cebdbfadac406e5fce 100644 (file)
@@ -32,7 +32,7 @@ endif()
 function(gperf_generate input output)
   add_custom_command(
     OUTPUT ${output}
-    COMMAND ${GPERF} ${input} > ${output}
+    COMMAND ${GPERF} ${input} | sed "s/register //g" > ${output}
     DEPENDS ${input}
     COMMENT "Generate ${output}"
     )