Skip to content

Conversation

@sgsullivan
Copy link

mod_cloudflare.c: In function 'set_cf_default_proxies':
mod_cloudflare.c:187:23: warning: initialization from incompatible
pointer type [enabled by default]
char **proxies = CF_DEFAULT_TRUSTED_PROXY;
^

The above error was being emitted on gcc 4.8.5 (apache 2.4.6) before applying this change. Verified things still seem to function as far as access_logs go.

mod_cloudflare.c: In function 'set_cf_default_proxies':
mod_cloudflare.c:187:23: warning: initialization from incompatible
pointer type [enabled by default]
      char **proxies = CF_DEFAULT_TRUSTED_PROXY;
                       ^
@Raptor007
Copy link

Or just change char **proxies to const char **proxies.

Copy link

@Raptor007 Raptor007 left a comment

Choose a reason for hiding this comment

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

Yes, this solves the compiler warning without changing functionality.

Copy link

@jptboy jptboy left a comment

Choose a reason for hiding this comment

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

yeah merge

Copy link

@B10nOnGit B10nOnGit left a comment

Choose a reason for hiding this comment

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

I apologize, I somehow got to the wrong repo entirely. Disregard this comment

@Raptor007
Copy link

I don't understand why this hasn't been merged in yet.

@p0358
Copy link

p0358 commented Dec 20, 2018

Well, probably won't be merged anymore since the module is abandoned by Cloudflare

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.

5 participants