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

Stage 1 of clang complier warning patches. These are mostly fixes for… #21

Merged
merged 1 commit into from
Oct 21, 2015

Conversation

ethoms
Copy link
Contributor

@ethoms ethoms commented Oct 21, 2015

… data type and casting inconsistencies. Also some string formatting fixes.

These are patches that come from a code cleanup exercise trying to clear as many clang compiler warnings as possible. But they should apply to any build environement.

Note that the SOPE and SOGo both build sucessfully after these and many other patches have been applied. Also, I've been running in production for a few days without any issues. However I have not done any unit testing.

… data type and casting inconsistencies. Also some string formatting fixes.
extrafu added a commit that referenced this pull request Oct 21, 2015
Stage 1 of clang complier warning patches. These are mostly fixes for…
@extrafu extrafu merged commit 7a8648a into Alinto:master Oct 21, 2015
@@ -87,7 +87,7 @@ - (unsigned)readBytes:(void *)_buf count:(unsigned)_len {
{
register unsigned char *byteBuffer = _buf;

for (_len = result - 1; _len >= 0; _len--, byteBuffer++) {
for (NSInteger len = result - 1; len >= 0; len--, byteBuffer++) {

Choose a reason for hiding this comment

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

This change broke my build on macppc, libobjc2, gcc-4.2.1:
NGByteCountStream.m: In function '-[NGByteCountStream readBytes:count:]':
NGByteCountStream.m:90: error: 'for' loop initial declaration used outside C99 mode

Choose a reason for hiding this comment

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

and I see that is already addressed in 3778286, same thing I came up with by myself ;)

@ethoms
Copy link
Contributor Author

ethoms commented Oct 26, 2015

These have already been fixed by extrafu! What branch are you using? You should have the commit "(fix) c99 fixes" (3778286).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants