However it doesn't matter, because the '= 0' doesn't actually add anything.
From testing, it seems to matter on the Mac platform including CentOS 7.3. I compared the output with this site. No warnings are emitted on CentOS 7.3.
Without '= 0'
predigit, nines = 0;
-- Mac OS X, Apple LLVM version 7.3.0 (clang-703.0.31)
demo.c:41:13: warning: expression result unused [-Wunused-value]
predigit, nines = 0;
^~~~~~~~
1 warning generated.
0314159265358979323846264338327954288419716939937510582097494459230781
+6406286208998628734825342117067
|
+ |
4
+ 7
-- Linux, gcc version 4.8.5 20150623
0314159265358979323846264338327954288419716939937510582097494459230781
+6406286208998628734825342117067
|
+ |
4
+ 7
With '= 0'
predigit = 0, nines = 0;
0314159265358979323846264338327950288419716939937510582097494459230781
+6406286208998628034825342117067
|
+ |
0
+ 0