summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2010-12-24 10:13:18 +0000
committerespie <espie@openbsd.org>2010-12-24 10:13:18 +0000
commit93eb8ef5cb75351d6d2ebb6adefb1e8fb6bb06c3 (patch)
tree508a7d620ccc0b5477cb9daf852f5e5624d5b270
parentmove the handling of ldconfig to AddDelete::State (diff)
downloadwireguard-openbsd-93eb8ef5cb75351d6d2ebb6adefb1e8fb6bb06c3.tar.xz
wireguard-openbsd-93eb8ef5cb75351d6d2ebb6adefb1e8fb6bb06c3.zip
define __throw_exception_again to something, so that g++ -fno-exceptions
does not throw warnings for stuff like if () __throw_exception_again; which does happen in its own fucking headers. builds of qt3 should no longer warn... okay millert@, no objection kettenis@
-rw-r--r--gnu/gcc/libstdc++-v3/libsupc++/exception_defines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/gcc/libstdc++-v3/libsupc++/exception_defines.h b/gnu/gcc/libstdc++-v3/libsupc++/exception_defines.h
index 446ed9466cb..765a052ae94 100644
--- a/gnu/gcc/libstdc++-v3/libsupc++/exception_defines.h
+++ b/gnu/gcc/libstdc++-v3/libsupc++/exception_defines.h
@@ -42,7 +42,7 @@
// Iff -fno-exceptions, transform error handling code to work without it.
# define try if (true)
# define catch(X) if (false)
-# define __throw_exception_again
+# define __throw_exception_again ((void)0)
#else
// Else proceed normally.
# define __throw_exception_again throw