Menu

#91 Attribute tag causes problems with Sun cc

open
meanwhile (31)
5
2014-08-22
2006-10-12
No

The Sun C compiler does not like the attribute tag.
The simplest fix is to simply remove the lines from the
three files and locations below. Lines with the "+"
should be removed to let the code compile.

diff -c meanwhile-1.0.2/src/srvc_dir.c
test/meanwhile-1.0.2/src/srvc_dir.c
*** meanwhile-1.0.2/src/srvc_dir.c Thu Oct 12
16:13:28 2006
--- test/meanwhile-1.0.2/src/srvc_dir.c Thu Sep 15
16:30:20 2005


*** 108,113 ****
--- 108,114 ----
}

  • attribute((used))
    static struct mwDirectory dir_new(struct
    mwAddressBook
    book, guint32 id) {
    struct mwDirectory *dir = g_new0(struct
    mwDirectory, 1);
    dir->service = book->service;

*** 126,131 ****
--- 127,133 ----
}

  • attribute((used))
    static void book_remove(struct mwAddressBook book) {
    struct mwServiceDirectory
    srvc = book->service;
    g_hash_table_remove(srvc->books, book->name);

diff -c meanwhile-1.0.2/src/srvc_place.c
test/meanwhile-1.0.2/src/srvc_place.c
*** meanwhile-1.0.2/src/srvc_place.c Thu Oct 12
16:13:53 2006
--- test/meanwhile-1.0.2/src/srvc_place.c Fri Dec
2 21:00:29 2005


*** 193,198 ****
--- 193,199 ----
}

  • attribute((used))
    static const struct mwLoginInfo *
    member_as_login_info(struct place_member *p) {
    static struct mwLoginInfo li;

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB