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

smtpc build warnings #50

Closed
xavierba opened this issue Sep 4, 2017 · 3 comments
Closed

smtpc build warnings #50

xavierba opened this issue Sep 4, 2017 · 3 comments
Labels
Milestone

Comments

@xavierba
Copy link
Contributor

xavierba commented Sep 4, 2017

Hi,

gcc is reporting warnings while building smtpc:

make[2]: Entering directory '/builddir/build/BUILD/sympa-6.2.19b.1/src/smtpc'
CC smtpc.o
CC sockstr.o
smtpc.c: In function 'parse_options':
smtpc.c:229:28: warning: comparison between pointer and zero character constant [-Wpointer-compare]
if (*p == ':' && ++p != '\0')
^~
smtpc.c:229:24: note: did you mean to dereference the pointer?
if (*p == ':' && ++p != '\0')
^~
smtpc.c:272:28: warning: comparison between pointer and zero character constant [-Wpointer-compare]
if (*p == ':' && ++p != '\0')
^~
smtpc.c:272:24: note: did you mean to dereference the pointer?
if (*p == ':' && ++p != '\0')
^~
This is with sympa 6.2.19 beta1 but the warnings were already in 6.2.18.

Also, in 6.2.19 beta 1, smtpc is not installed anymore to libexecdir but to bindir. Is that expected ?

Regards,
Xavier

@ikedas
Copy link
Member

ikedas commented Sep 5, 2017

@xavierba , I was astonished to see my gcc had been missing these malicious typos. It should be fixed:

Also, in 6.2.19 beta 1, smtpc is not installed anymore to libexecdir but to bindir. Is that expected ?

It is intended: a220ee7 . To keep compatibility to earlier version, --bindir=(libexec directory) have to be added to configure option.

@ikedas ikedas added the bug label Sep 5, 2017
@ikedas ikedas added this to the 6.2.20 milestone Sep 5, 2017
@xavierba
Copy link
Contributor Author

xavierba commented Sep 5, 2017

I can confirm the smtpc build warnings are now gone, thanks.
Also, thanks for the hint about smtpc in bindir rather than libexecdir.

@ikedas
Copy link
Member

ikedas commented Sep 6, 2017

Merged. Thanks for reviewing & confirming. This issue is closed.

@ikedas ikedas closed this as completed Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants