summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2013-06-14 10:52:23 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2013-06-14 10:52:23 +0200
commita040586cceab693b5b689afff841c785afa38e53 (patch)
tree635f7a3d45ec27024d2f7e63e79da82fdeb47273 /include
parent9f7043ab91197decf382553e156aabc87d5f7451 (diff)
downloadmariadb-git-a040586cceab693b5b689afff841c785afa38e53.tar.gz
Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8
Backport to 5.5 (external Bug#69407 Build warnings with mysql)
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 85f2078e361..0d43964234b 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -391,7 +391,7 @@ C_MODE_END
#define compile_time_assert(X) \
do \
{ \
- typedef char compile_time_assert[(X) ? 1 : -1]; \
+ typedef char compile_time_assert[(X) ? 1 : -1] __attribute__((unused)); \
} while(0)
#endif