[syslinux:lwip] core/debug.c: don't error out on !DEBUG
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Wed Jun 29 18:24:05 PDT 2011
Commit-ID: 4c6d14041e7589dd9f905fbbe14dd63de57893a0
Gitweb: http://syslinux.zytor.com/commit/4c6d14041e7589dd9f905fbbe14dd63de57893a0
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 27 Jun 2011 18:53:39 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 27 Jun 2011 18:53:39 -0700
core/debug.c: don't error out on !DEBUG
Avoid a -Werror failure when not debugging.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/debug.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/core/debug.c b/core/debug.c
index 2824573..9bf8b3a 100644
--- a/core/debug.c
+++ b/core/debug.c
@@ -3,5 +3,7 @@
void pm_debug_msg(com32sys_t *regs)
{
+ (void)regs; /* For the non-DEBUG configuration */
+
dprintf("%s\n", MK_PTR(0, regs->eax.w[0]));
}
More information about the Syslinux-commits
mailing list