/[gentoo-x86]/app-admin/elektra/files/elektra-0.8.3-introduce-attributes.patch
Gentoo

Contents of /app-admin/elektra/files/elektra-0.8.3-introduce-attributes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sun Nov 4 10:40:57 2012 UTC (7 years, 4 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
Version bump, big thanks to Andreas Sturmlechner doing all the work on bug 429722.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 --- a/src/include/CMakeLists.txt
2 +++ b/src/include/CMakeLists.txt
3 @@ -22,6 +22,9 @@
4 check_include_file(time.h HAVE_TIME_H)
5 check_include_file(unistd.h HAVE_UNISTD_H)
6
7 +set (ELEKTRA_DEPRECATED "__attribute__ ((deprecated))")
8 +set (ELEKTRA_UNUSED "__attribute__ ((unused))")
9 +
10 configure_file (
11 "${CMAKE_CURRENT_SOURCE_DIR}/kdb.h"
12 "${CMAKE_CURRENT_BINARY_DIR}/kdb.h"
13 --- a/src/include/kdbconfig.h
14 +++ b/src/include/kdbconfig.h
15 @@ -30,6 +30,12 @@
16 * to search for user configuration. */
17 #define KDB_DB_HOME "@KDB_DB_HOME@"
18
19 +/** Declares a parameter as unused. */
20 +#define ELEKTRA_UNUSED @ELEKTRA_UNUSED@
21 +
22 +/** Declares an API as deprecated. */
23 +#define ELEKTRA_DEPRECATED @ELEKTRA_DEPRECATED@
24 +
25 /* disable debug output messages */
26 #define DEBUG @DEBUG@
27

  ViewVC Help
Powered by ViewVC 1.1.20