X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fm4.git;a=blobdiff_plain;f=tests%2Ftest-alloca-opt.c;h=fdbf6f5881c6a61805b74c0c460639e71576cdd2;hp=b9aaa4a147a6c170e0bf536da84ed4d4d192fcae;hb=bbcce2d630bc94f06c99ff627cec033a3a6dcd93;hpb=253a2fc5d9cd390d78a209f08af8ae31b13c44d8 diff --git a/tests/test-alloca-opt.c b/tests/test-alloca-opt.c index b9aaa4a..fdbf6f5 100644 --- a/tests/test-alloca-opt.c +++ b/tests/test-alloca-opt.c @@ -1,5 +1,5 @@ /* Test of optional automatic memory allocation. - Copyright (C) 2005, 2007, 2009-2016 Free Software Foundation, Inc. + Copyright (C) 2005, 2007, 2009-2021 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,7 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ /* Written by Bruno Haible , 2007. */ @@ -25,7 +25,7 @@ static void do_allocation (int n) { - void *ptr = alloca (n); + void *volatile ptr = alloca (n); (void) ptr; }