[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [patch] malloc compiler warning
From: |
Theodore A. Roth |
Subject: |
[avr-libc-dev] [patch] malloc compiler warning |
Date: |
Mon, 30 Sep 2002 12:12:52 -0700 (PDT) |
Turns out my fix for malloc nn friday introduced a compiler warning. D'oh!
The attached patch quells the warning. I verified that my app runs. I also
looked at the disassembly and everything checks out.
The only warnings I'm getting are the known ones (qsort and strto{u,}l).
Ted Roth
2002-09-30 Theodore A. Roth <address@hidden>
* libc/stdlib/malloc.c: Quell compiler warning.
Index: libc/stdlib/malloc.c
===================================================================
RCS file: /cvsroot/avr-libc/avr-libc/libc/stdlib/malloc.c,v
retrieving revision 1.4
diff -u -r1.4 malloc.c
--- libc/stdlib/malloc.c 27 Sep 2002 21:45:33 -0000 1.4
+++ libc/stdlib/malloc.c 30 Sep 2002 19:00:50 -0000
@@ -69,7 +69,7 @@
extern char __heap_start;
extern char __heap_end;
-#define STACK_POINTER() _SFR_IO16(0x3D)
+#define STACK_POINTER() ((char *)_SFR_IO16(0x3D))
#endif /* MALLOC_TEST */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [patch] malloc compiler warning,
Theodore A. Roth <=