diff options
author | Alan Modra <amodra@gmail.com> | 2005-03-01 02:00:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-03-01 02:00:15 +0000 |
commit | c9dea48b1faf7a8a243673dd32a0089036f7ea36 (patch) | |
tree | 9e1819147081e7c3fbf2923cd5ca4bf984212980 /gas/as.h | |
parent | 055d1eb0f88fc42495d1fac45e89e5ef06ab207d (diff) | |
download | gdb-c9dea48b1faf7a8a243673dd32a0089036f7ea36.zip gdb-c9dea48b1faf7a8a243673dd32a0089036f7ea36.tar.gz gdb-c9dea48b1faf7a8a243673dd32a0089036f7ea36.tar.bz2 |
* as.h (assert): Warning fix.
* expr.c (expr): Correct assertion.
* read.c (s_comm_internal): Remove assertion.
* write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
(fixup_segment): Remove assertion.
* config/tc-dlx.c (machine_ip): Remove untrue assertions.
(md_apply_fix3): Likewise.
* config/tc-i370.c (md_begin): Correct assertion.
(i370_macro): Warning fix for assertion.
Diffstat (limited to 'gas/as.h')
-rw-r--r-- | gas/as.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -104,7 +104,8 @@ extern void *alloca (); #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6) #define __PRETTY_FUNCTION__ ((char*)0) #endif -#define assert(P) ((P) ? 0 : (as_assert (__FILE__, __LINE__, __PRETTY_FUNCTION__), 0)) +#define assert(P) \ + ((void) ((P) ? 0 : (as_assert (__FILE__, __LINE__, __PRETTY_FUNCTION__), 0))) #undef abort #define abort() as_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__) |