Skip to content

Cast pid_t to int at log printing to avoid compile warnings in Solaris 10#2121

Merged
chemamartinez merged 1 commit into3.8from
fix-warnings-solaris10
Dec 17, 2018
Merged

Cast pid_t to int at log printing to avoid compile warnings in Solaris 10#2121
chemamartinez merged 1 commit into3.8from
fix-warnings-solaris10

Conversation

@vikman90
Copy link
Member

@vikman90 vikman90 commented Dec 15, 2018

This PR closes issue #2120.

The compiler complains that pid_t is not int in Solaris 10.
According to the GNU C Library, the type pid_t is a signed integer. Then, the closes standard C type is int.

We propose to cast pid_t to int when printing logs.

@vikman90 vikman90 added the type/bug Something isn't working label Dec 17, 2018
@vikman90 vikman90 added this to the 51th week sprint milestone Dec 17, 2018
@chemamartinez chemamartinez merged commit 2c1e334 into 3.8 Dec 17, 2018
@chemamartinez chemamartinez deleted the fix-warnings-solaris10 branch December 17, 2018 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants