File tree 5 files changed +12
-13
lines changed
5 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 1
- PEDANTIC :=
2
- STD := gnu11
1
+ CC_STD = gnu11
2
+ PEDANTIC =
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Thus automatically deallocated when the function returns.
14
14
15
15
int f () {
16
16
size_t size = 1 + (time (NULL ) % 3 );
17
- int * ip = alloca (size * sizeof (int ));
17
+ int * ip = ( int * ) alloca (size * sizeof (int ));
18
18
ip [0 ] = 1 ;
19
19
return ip [0 ];
20
20
}
Original file line number Diff line number Diff line change
1
+ #include <alloca.h>
1
2
#include <assert.h> /* assert */
2
3
#include <complex.h> /* Complex integer types. */
3
4
#include <inttypes.h> /* intmax_t */
8
9
#include <stdlib.h> /* EXIT_SUCCESS */
9
10
#include <string.h>
10
11
#include <time.h> /* time() */
11
-
12
12
#include <unistd.h> /* execl for sentinel attribute */
Original file line number Diff line number Diff line change 1
- /*
2
- # typeof
3
-
4
- Like C++11 decltype.
5
-
6
- Partially reproductible with C11 `_Generic`.
7
-
8
- https://stackoverflow.com/questions/6513806/would-it-be-possible-to-add-type-inference-to-the-c-language/31709221#31709221
9
- */
1
+ /* # typeof
2
+ *
3
+ * Like C++11 decltype.
4
+ *
5
+ * Partially reproductible with C11 `_Generic`.
6
+ *
7
+ * https://stackoverflow.com/questions/6513806/would-it-be-possible-to-add-type-inference-to-the-c-language/31709221#31709221
8
+ */
10
9
11
10
#include "common.h"
12
11
File renamed without changes.
You can’t perform that action at this time.
0 commit comments