diff options
author | Damien Doligez <damien.doligez-inria.fr> | 2004-05-17 17:10:00 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 2004-05-17 17:10:00 +0000 |
commit | db3745919bb07ffcc61c0b04dfd959af4503523b (patch) | |
tree | f6593c355ac0be6daa8a1d1d99548a747300db5f /byterun/misc.h | |
parent | 93ff0675a75f35c0ddc91da0ff7383550533def2 (diff) |
suppression des warnings "unused variable" de gcc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6299 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/misc.h')
-rw-r--r-- | byterun/misc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/byterun/misc.h b/byterun/misc.h index e36c1586a..bda864fc4 100644 --- a/byterun/misc.h +++ b/byterun/misc.h @@ -41,10 +41,10 @@ typedef char * addr; /* </private> */ #ifdef __GNUC__ -/* Works only in GCC 2.5 and later */ -#define Noreturn __attribute ((noreturn)) + /* Works only in GCC 2.5 and later */ + #define Noreturn __attribute__ ((noreturn)) #else -#define Noreturn + #define Noreturn #endif /* Export control (to mark primitives and to handle Windows DLL) */ @@ -71,7 +71,7 @@ typedef char * addr; #define CAMLassert(x) ((x) ? 0 : caml_failed_assert ( #x , __FILE__, __LINE__)) CAMLextern int caml_failed_assert (char *, char *, int); #else -#define CAMLassert(x) 0 +#define CAMLassert(x) ((void) 0) #endif CAMLextern void caml_fatal_error (char *msg) Noreturn; |