avr-libc-commit
[Top][All Lists]
Advanced

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

[avr-libc-commit] [2401] Initialize progmem variable s[] to get rid of a


From: Joerg Wunsch
Subject: [avr-libc-commit] [2401] Initialize progmem variable s[] to get rid of a warning.
Date: Mon, 13 May 2013 15:24:14 +0000

Revision: 2401
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2401
Author:   joerg_wunsch
Date:     2013-05-13 15:24:14 +0000 (Mon, 13 May 2013)
Log Message:
-----------
Initialize progmem variable s[] to get rid of a warning.

Modified Paths:
--------------
    trunk/avr-libc/ChangeLog
    trunk/avr-libc/tests/simulate/other/progtype-3.c

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2013-05-13 15:21:58 UTC (rev 2400)
+++ trunk/avr-libc/ChangeLog    2013-05-13 15:24:14 UTC (rev 2401)
@@ -1,5 +1,10 @@
 2013-05-13  Joerg Wunsch <address@hidden>
 
+       * tests/simulate/other/progtype-3.c (s): Initialize progmem
+       variable to get rid of a warning.
+
+2013-05-13  Joerg Wunsch <address@hidden>
+
        * tests/simulate/regression/bug-28135.c: GCC 4.5+ implies malloc()
        and free() have no side-effects to global variables.  Place a
        memory barrier before any evaluations of __flp or __brkval to

Modified: trunk/avr-libc/tests/simulate/other/progtype-3.c
===================================================================
--- trunk/avr-libc/tests/simulate/other/progtype-3.c    2013-05-13 15:21:58 UTC 
(rev 2400)
+++ trunk/avr-libc/tests/simulate/other/progtype-3.c    2013-05-13 15:24:14 UTC 
(rev 2401)
@@ -44,7 +44,7 @@
 #define __PROG_TYPES_COMPAT__
 #include <avr/pgmspace.h>
 
-static const prog_char s[10];
+static const prog_char s[10] = { 0 };
 
 int main ()
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]