commit | 9d77b599f93a204c5d8276548d788831d976e9b5 | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Wed Mar 27 11:28:10 2013 -0700 |
committer | Rich Lane <rlane@bigswitch.com> | Sat Apr 06 15:53:41 2013 -0700 |
tree | 2a35802ec4af0afb141416c2fa4052f5f581b107 | |
parent | ed79e0d89045f14885543e5790e15dc60bbbb132 [diff] |
loci: only use pragmas with GCC >= 3
diff --git a/c_gen/c_code_gen.py b/c_gen/c_code_gen.py index 735dc6d..d57f675 100644 --- a/c_gen/c_code_gen.py +++ b/c_gen/c_code_gen.py
@@ -756,8 +756,10 @@ * ****************************************************************/ +#if __GNUC__ >= 3 #pragma GCC optimize ("s") #pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif #include <loci/loci.h> #include <loci/of_object.h>