From bb867480fc2e7b8eded9f5a1bc12ea94bdbfa0ae Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Thu, 22 Dec 2022 10:21:25 +0000 Subject: [PATCH] Use consistent name for all variant implementations of VLwarn(). The function prototypes both use the name VLwarn, with a macro definition providing the alias to yywarn. But one of the variant implementations was named yywarn. Make it consistent with the function prototype. --- parse_misc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse_misc.cc b/parse_misc.cc index 89587c6e2..95c64dbb4 100644 --- a/parse_misc.cc +++ b/parse_misc.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998-2021 Stephen Williams (steve@icarus.com) + * Copyright (c) 1998-2022 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -67,7 +67,7 @@ void VLerror(const YYLTYPE&loc, const char*msg, ...) based_size = 0; /* Clear the base information if we have an error. */ } -void yywarn(const YYLTYPE&loc, const char*msg) +void VLwarn(const YYLTYPE&loc, const char*msg) { warn_count += 1; cerr << loc << ": warning: " << msg << endl;