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

Compile warning when compiling in debian unstable #5

Open
mochrul opened this issue Oct 9, 2016 · 0 comments
Open

Compile warning when compiling in debian unstable #5

mochrul opened this issue Oct 9, 2016 · 0 comments

Comments

@mochrul
Copy link

mochrul commented Oct 9, 2016

There are a lot of compile warning about string conversion when compiling the code in debian unstable.

Some example:

proxy.cc: In function 'gboolean z_proxy_policy_config(ZProxy*)':
proxy.cc:420:48: warning: ISO C++ forbids converting a string constant to 'gchar* {aka char*}' [-Wwrite-strings]
   if (!z_proxy_policy_call(self, "config", NULL))
                                                ^
proxy.cc:434:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   PyObject *encryption = z_policy_getattr(self->handler, "encryption");
                                                                      ^
proxy.cc: In function 'gboolean z_proxy_policy_startup(ZProxy*)':
proxy.cc:461:54: warning: ISO C++ forbids converting a string constant to 'gchar* {aka char*}' [-Wwrite-strings]
   if (!z_proxy_policy_call(self, "startup", "startUp"))
                                                      ^
proxy.cc:461:54: warning: ISO C++ forbids converting a string constant to 'gchar* {aka char*}' [-Wwrite-strings]
proxy.cc: In function 'void z_proxy_policy_shutdown(ZProxy*)':
proxy.cc:486:51: warning: ISO C++ forbids converting a string constant to 'gchar* {aka char*}' [-Wwrite-strings]
   z_proxy_policy_call(self, "shutdown", "shutDown");
                                                   ^
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

No branches or pull requests

1 participant