From patchwork Tue Jan 31 07:39:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Liebler X-Patchwork-Id: 19061 Received: (qmail 74986 invoked by alias); 31 Jan 2017 07:39:52 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 74965 invoked by uid 89); 31 Jan 2017 07:39:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Compiling, bye X-HELO: mx0a-001b2d01.pphosted.com To: libc-alpha@sourceware.org From: Stefan Liebler Subject: Get rid of duplicate const declaration specifier warning in tst-resolv-qtypes.c. Date: Tue, 31 Jan 2017 08:39:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17013107-0008-0000-0000-000003DEE602 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17013107-0009-0000-0000-00001C4B083E Message-Id: <8d30c0c3-0b00-fc08-8e49-811aec114ef9@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-01-31_03:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1701310070 Hi, Compiling resolv/tst-resolv-qtypes.c with GCC 7 results in: tst-resolv-qtypes.c:53:14: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier] static const const char *domain = "www.example.com"; This patch removes one of the two const specifiers. Ok to commit (after release)? Bye. Stefan ChangeLog: * resolv/tst-resolv-qtypes.c (domain): Remove duplicate const qualifier. commit 8967a533335bff0feaa2abae242de94c928c9214 Author: Stefan Liebler Date: Mon Jan 30 09:06:44 2017 +0100 Get rid of duplicate const declaration specifier warning in tst-resolv-qtypes.c. Compiling resolv/tst-resolv-qtypes.c with GCC 7 results in: tst-resolv-qtypes.c:53:14: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier] static const const char *domain = "www.example.com"; This patch removes one of the two const specifiers. ChangeLog: * resolv/tst-resolv-qtypes.c (domain): Remove duplicate const qualifier. diff --git a/resolv/tst-resolv-qtypes.c b/resolv/tst-resolv-qtypes.c index dcb39e5..2d91e92 100644 --- a/resolv/tst-resolv-qtypes.c +++ b/resolv/tst-resolv-qtypes.c @@ -50,7 +50,7 @@ response (const struct resolv_response_context *ctx, resolv_response_close_record (b); } -static const const char *domain = "www.example.com"; +static const char *domain = "www.example.com"; static int wrap_res_query (int type, unsigned char *answer, int answer_length)