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

Fixing some compiler warnings from armv7l #2301

Merged
merged 2 commits into from Sep 21, 2018

Conversation

furiel
Copy link
Collaborator

@furiel furiel commented Sep 21, 2018

I was compiling syslog-ng on armv7l and I found some warnings, that I intend to fix now. (Probably glong->gint64 change is not arm specific.)

I wanted to add -Wincompatible-pointer-types to extra warnings, but 4.8 gcc and clang does not know that warning yet. Though with xenial gcc, I could compile without these warnings.

Besides these, there were 43 instances warning: cast increases required alignment of target type [-Wcast-align] that I do not fix for now.

Signed-off-by: Antal Nemes <antal.nemes@balabit.com>
d is a glong, but passed as a gint64 pointer to parse_number. This
results in a warning, and unexpected write on the stack.

Signed-off-by: Antal Nemes <antal.nemes@balabit.com>
@kira-syslogng
Copy link
Contributor

Build FAILURE

@MrAnno
Copy link
Collaborator

MrAnno commented Sep 21, 2018

@kira-syslogng retest this please

Copy link
Collaborator

@lbudai lbudai left a comment

Choose a reason for hiding this comment

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

@furiel: thanks for checking it!

@kira-syslogng
Copy link
Contributor

Build SUCCESS

@MrAnno MrAnno merged commit 6740976 into syslog-ng:master Sep 21, 2018
@lbudai lbudai added this to the OSE 3.18 milestone Sep 24, 2018
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

5 participants