Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): fix lint warning about empty declarations



details:   https://anonhg.NetBSD.org/src/rev/aa083c6d6e35
branches:  trunk
changeset: 950749:aa083c6d6e35
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Jan 30 15:53:55 2021 +0000

description:
make(1): fix lint warning about empty declarations

diffstat:

 usr.bin/make/enum.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6b11245c39a2 -r aa083c6d6e35 usr.bin/make/enum.h
--- a/usr.bin/make/enum.h       Sat Jan 30 15:48:42 2021 +0000
+++ b/usr.bin/make/enum.h       Sat Jan 30 15:53:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: enum.h,v 1.15 2021/01/30 15:48:42 rillig Exp $ */
+/*     $NetBSD: enum.h,v 1.16 2021/01/30 15:53:55 rillig Exp $ */
 
 /*
  Copyright (c) 2020 Roland Illig <rillig%NetBSD.org@localhost>
@@ -104,7 +104,7 @@
 #define ENUM__VALUE_RTTI(typnam, specs) \
        static const EnumToStringSpec typnam ## _ ## ToStringSpecs[] = specs; \
        MAKE_INLINE const char *typnam ## _ToString(typnam value) \
-       { return Enum_ValueToString(value, typnam ## _ ## ToStringSpecs); }; \
+       { return Enum_ValueToString(value, typnam ## _ ## ToStringSpecs); } \
        extern void enum_value_rtti_dummy(void)
 
 
@@ -115,7 +115,7 @@
        MAKE_INLINE const char *typnam ## _ToString(char *buf, typnam value) \
        { return Enum_FlagsToString(buf, typnam ## _ ## ToStringSize, \
            value, typnam ## _ ## ToStringSpecs); \
-       }; \
+       } \
        extern void enum_flags_rtti_dummy(void)
 
 /*



Home | Main Index | Thread Index | Old Index