Module Name: src Committed By: rillig Date: Sun Nov 28 09:59:59 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: allow Bison debug functions to be unused The grammar is only compiled using Bison during development time. In the official builds, it is built with byacc. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.371 -r1.372 src/usr.bin/xlint/lint1/cgram.y Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/cgram.y diff -u src/usr.bin/xlint/lint1/cgram.y:1.371 src/usr.bin/xlint/lint1/cgram.y:1.372 --- src/usr.bin/xlint/lint1/cgram.y:1.371 Sat Nov 27 20:13:48 2021 +++ src/usr.bin/xlint/lint1/cgram.y Sun Nov 28 09:59:59 2021 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: cgram.y,v 1.371 2021/11/27 20:13:48 christos Exp $ */ +/* $NetBSD: cgram.y,v 1.372 2021/11/28 09:59:59 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: cgram.y,v 1.371 2021/11/27 20:13:48 christos Exp $"); +__RCSID("$NetBSD: cgram.y,v 1.372 2021/11/28 09:59:59 rillig Exp $"); #endif #include <limits.h> @@ -361,7 +361,7 @@ anonymize(sym_t *s) %{ #if defined(YYDEBUG) && defined(YYBISON) -static void cgram_print(FILE *, int, YYSTYPE); +static inline void cgram_print(FILE *, int, YYSTYPE); #endif %} @@ -2185,7 +2185,7 @@ cgram_to_string(int token, YYSTYPE val) #endif #if defined(YYDEBUG) && defined(YYBISON) -static void +static inline void cgram_print(FILE *output, int token, YYSTYPE val) { (void)fprintf(output, "%s", cgram_to_string(token, val));