Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some compiler warnings #5285

Merged
merged 4 commits into from Oct 22, 2015
Merged

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Oct 20, 2015

No description provided.

@mdboom mdboom added this to the next point release (1.5.0) milestone Oct 20, 2015
@@ -1843,7 +1843,6 @@ void qh_initqhull_start2(FILE *infile, FILE *outfile, FILE *errfile) {
time_t timedata;
int seed;

qh_CPUclock; /* start the clock(for qh_clock). One-shot. */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't modify anything in extern/qhull as it is a verbatim copy of the qhull source code. I'd prefer to leave it as it is and accept compiler warnings rather than change it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this was only partly reverted the comment is missing

@ianthomas23
Copy link
Member

I am happy with the changes to the two wrapper files, making them consistent with other wrappers.

@mdboom
Copy link
Member Author

mdboom commented Oct 20, 2015

Of course, you're right about extern. Missed that. I'll revert that change.

@mdboom
Copy link
Member Author

mdboom commented Oct 20, 2015

I've added some more warning fixes from gcc (the others were from clang)

@jenshnielsen
Copy link
Member

👍 I have been intending to silence some warnings for some time but have not gotten around to doing it

@@ -480,10 +480,7 @@ extern "C" {

struct module_state
{
/* The Sun compiler can't handle empty structs */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment referring to the module_state struct itself or the allocation that occurs at some other point? Because I don't see why this can't be remove entirely and just a straightforward 0 passed for the size.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point.

mdboom added a commit that referenced this pull request Oct 22, 2015
@mdboom mdboom merged commit c32bde5 into matplotlib:master Oct 22, 2015
@mdboom
Copy link
Member Author

mdboom commented Oct 22, 2015

Backported to 1.5.x as b7c76c5

mdboom added a commit that referenced this pull request Oct 22, 2015
@mdboom mdboom deleted the compiler-warnings branch November 10, 2015 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants