Source-Changes-HG archive

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

[src/trunk]: src/sys/dev dev_verbose(9): Use a comma expression, not an expre...



details:   https://anonhg.NetBSD.org/src/rev/d92e6402a518
branches:  trunk
changeset: 1021745:d92e6402a518
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jun 15 23:24:57 2021 +0000

description:
dev_verbose(9): Use a comma expression, not an expression block.

Should pacify clang's -Wcompound-token-split-by-macro.

diffstat:

 sys/dev/dev_verbose.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 426b3dcaaab4 -r d92e6402a518 sys/dev/dev_verbose.h
--- a/sys/dev/dev_verbose.h     Tue Jun 15 22:21:09 2021 +0000
+++ b/sys/dev/dev_verbose.h     Tue Jun 15 23:24:57 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dev_verbose.h,v 1.6 2021/06/09 23:22:51 pgoyette Exp $ */
+/*     $NetBSD: dev_verbose.h,v 1.7 2021/06/15 23:24:57 riastradh Exp $ */
 
 /*
  * Redistribution and use in source and binary forms, with or without
@@ -117,7 +117,7 @@
                                                                        \
        tag ## _load_verbose();                                         \
        MODULE_HOOK_CALL(tag ## _findvendor_hook, (buf, len, vendor),   \
-               {snprintf(buf, len, "vendor %4.4x", vendor); NULL; },   \
+               (snprintf(buf, len, "vendor %4.4x", vendor), NULL),     \
                retval);                                                \
        return retval;                                                  \
 }                                                                      \
@@ -131,7 +131,7 @@
        tag ## _load_verbose();                                         \
        MODULE_HOOK_CALL(tag ## _findproduct_hook,                      \
                (buf, len, vendor, product),                            \
-               {snprintf(buf, len, "product %4.4x", product); NULL; }, \
+               (snprintf(buf, len, "product %4.4x", product), NULL),   \
                retval);                                                \
        return retval;                                                  \
 }                                                                      \



Home | Main Index | Thread Index | Old Index