chiark / gitweb /
test-exec-util: drop duplicate const
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 19 Apr 2017 20:32:52 +0000 (16:32 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:51 +0000 (09:46 +0200)
gcc-7 warns about this with -Wduplicate-decl-specifier.

src/test/test-exec-util.c

index 1520dd13ac2d84c25b1e291117bc8fc488fdfc4b..241e5237ce277e8e64fd88e2f2881df93d255a75 100644 (file)
@@ -223,7 +223,7 @@ static int gather_stdout_three(int fd, void *arg) {
         return 0;
 }
 
         return 0;
 }
 
-const gather_stdout_callback_t const gather_stdout[] = {
+const gather_stdout_callback_t gather_stdout[] = {
         gather_stdout_one,
         gather_stdout_two,
         gather_stdout_three,
         gather_stdout_one,
         gather_stdout_two,
         gather_stdout_three,