Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282705 - eselect-python-20090814* requires patch to remove __attribute__ for non-GNU compilers
Summary: eselect-python-20090814* requires patch to remove __attribute__ for non-GNU c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 15:27 UTC by Stuart Shelton
Modified: 2009-09-01 20:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-08-25 15:27:52 UTC
--- python-wrapper.c.dist       2009-08-21 14:50:34.237958680 +0100
+++ python-wrapper.c    2009-08-21 14:56:52.405855320 +0100
@@ -164,7 +169,7 @@ const char* find_latest(const char* exe)
        return ret;
 }
 
-int main(__attribute__((unused)) int argc, char** argv)
+int main(int argc, char** argv)
 {
        if (strlen(program_description) == 0)
                abort();
Comment 1 Fabian Groffen gentoo-dev 2009-08-26 09:18:38 UTC
Please remove GNU constructs from the eselect-python wrapper code.  If argc is unused in the code, tell the compiler in the portable way:

int main(int argc, char[] *argv) {
    ...

    (void)argc;

    ...
}