]> git.mdlowis.com Git - archive/atc.git/commitdiff
Tweaked build options and code to be strict C99
authorMike D. Lowis <mike.lowis@gentex.com>
Mon, 6 Apr 2015 14:17:00 +0000 (10:17 -0400)
committerMike D. Lowis <mike.lowis@gentex.com>
Mon, 6 Apr 2015 14:17:00 +0000 (10:17 -0400)
build.rb
source/runtime/gc.c

index bae9118af590156de3c4d831b86590ecb57062b9..f2c923ba44f9fe2bd9303db8b14dd832d4a77faf 100755 (executable)
--- 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']
index e8c16f76f81f969d684e8939977b2e1f56cc80b6..985f7f93ed256291ac7d0b2119c083ca68a00785 100644 (file)
@@ -11,7 +11,7 @@ typedef struct {
 
 typedef struct root_t {
     struct root_t* next;
-    void* address;
+    uintptr_t* address;
     size_t size;
 } root_t;