summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2023-04-28 14:47:07 -0400
committerJan Setje-Eilers <73182357+jsetje@users.noreply.github.com>2023-06-23 14:12:58 -0700
commitf132655f458035aa2ed6b9e3a5ae4c04b13c9311 (patch)
tree42561d81ef35a2a0d634acf223eddfbf20308940 /include
parent118ff873a9a8214e8c1aed7c1a8f421ee72889a6 (diff)
downloadefi-boot-shim-f132655f458035aa2ed6b9e3a5ae4c04b13c9311.tar.gz
efi-boot-shim-f132655f458035aa2ed6b9e3a5ae4c04b13c9311.zip
test: Make our fake dprintf be a statement.
In a few places we put dprintf() at places where the compiler will get confused if it isn't a block or a statement. Obviously, it should be a statement, so this makes it one. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/console.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/console.h b/include/console.h
index 8eb4b47f..7ac4e113 100644
--- a/include/console.h
+++ b/include/console.h
@@ -106,8 +106,8 @@ extern UINT32 verbose;
dprint_(L"%a:%d:%a() " fmt, __FILE__, __LINE__ - 1, __func__, \
##__VA_ARGS__)
#else
-#define dprint_(...)
-#define dprint(fmt, ...)
+#define dprint_(...) ({ ; })
+#define dprint(fmt, ...) ({ ; })
#endif
extern EFI_STATUS EFIAPI vdprint_(const CHAR16 *fmt, const char *file, int line,