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

Fixed compilation failures related to usage of type bool #481

Closed
wants to merge 3 commits into from
Closed

Fixed compilation failures related to usage of type bool #481

wants to merge 3 commits into from

Conversation

ikselven
Copy link
Contributor

Using gcc 6.3 on Debian 9 (Stretch), compilation fails because:

  1. in struct anomaly_t in src/asf_meta/propagate.h there is a field labelled "true"
  2. in include/ifm.h the type definition for bool is problematic

This pull request fixes these problems by:

  1. renaming the field "true" to "isTrue"
  2. replacing the custom boolean type definition with stdbool.h which provides a type bool

#include "asf_meta.h"
#include "fft.h"
#include "fft2d.h"
#include "ifm.h"
#include <stdbool.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate. ifm.h is duplicated too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed with c64f1fa

@@ -28,7 +28,7 @@ typedef struct {

typedef struct {
double mean;
double true;
double isTrue;
Copy link
Contributor

Choose a reason for hiding this comment

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

The name of this member is changed, but there are no changes to code using that member anywhere I can see in this pull request. Is it disused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The struct seems to be unused. propagate.h is only included in propagate.c, however anomaly_t is not used in propagate.c.

@ikselven
Copy link
Contributor Author

Is there something that still needs to be done to get this PR closer to being merged?

I've noticed, that the first commit in this PR has become obsolete with the removal of the offending struct anomaly_t in 0a0c542.

Leaving that aside, without the other commits in this PR (9c1fae9, c64f1fa) , it is still impossible to compile ASF MapReady with gcc on Debian Stretch. (gcc 6.3.0, Debian 9.5)

@ikselven
Copy link
Contributor Author

Closing this now in favor of a cleaner, new PR.

@ikselven ikselven closed this Mar 20, 2019
@csallen2
Copy link

csallen2 commented Mar 20, 2019 via email

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.

3 participants