From 48d4e0bc449472736e67df8140b41124519d3eef Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Mon, 6 Apr 2015 10:17:00 -0400 Subject: [PATCH] Tweaked build options and code to be strict C99 --- build.rb | 2 +- source/runtime/gc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.rb b/build.rb index bae9118..f2c923b 100755 --- a/build.rb +++ b/build.rb @@ -14,7 +14,7 @@ base_env = BuildEnv.new do |env| # Setup include paths env['CPPPATH'] += Dir['source/**/', 'modules/atf/source/'] # Turn on all warnings and treat them as errors, Also C99 strict mode - env['CFLAGS'] += ['-Wall', '-Wextra', '-Werror'] + env['CFLAGS'] += ['--std=c99', '-pedantic', '-Wall', '-Wextra', '-Werror'] # Enable debug symbols for test if Opts[:profile].include? "test" env['CFLAGS'] += ['-g', '-O0'] diff --git a/source/runtime/gc.c b/source/runtime/gc.c index e8c16f7..985f7f9 100644 --- a/source/runtime/gc.c +++ b/source/runtime/gc.c @@ -11,7 +11,7 @@ typedef struct { typedef struct root_t { struct root_t* next; - void* address; + uintptr_t* address; size_t size; } root_t; -- 2.54.0