From: Mike D. Lowis Date: Mon, 6 Apr 2015 14:17:00 +0000 (-0400) Subject: Tweaked build options and code to be strict C99 X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=48d4e0bc449472736e67df8140b41124519d3eef;p=archive%2Fatc.git Tweaked build options and code to be strict C99 --- 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;