Skip to content

Eliminate warnings under Sun Studio

Ævar Arnfjörð Bjarmason git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Fix an enum assignment issue spotted by Sun Studiobuiltin/fast-export.c+2 -20 replies
2/4Fix a bitwise negation assignment issue spotted by Sun Studiotest-treap.c vcs-svn/repo_tree.c vcs-svn/string_pool.c+4 -40 replies
3/4Appease Sun Studio by renaming "tmpfile"builtin/index-pack.c fast-import.c pack-write.c +1 more+16 -160 replies
4/4Suppress "statement not reached" warnings under Sun Studioread-cache.c xdiff/xutils.c+12 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Eliminate warnings under Sun Studio

This patch series eliminates warnings under Sun Studio. The first two patches address actual (but obviously minor) issues, the third is a nit, and the fourth disables a warning Sun Studio gets wrong.

I'm not sure whether we want the verbose code needed in the forth to disable warnings under specific compilers, but since it's a rare enough case and saves people compiling the code from wondering about it's it's probably warranted. It's a verbose way to get rid of it though.

I've CC'd people involved in the code touched by the first two, but the second two are generic enough that I've decided not to bother the original authors.

Ævar Arnfjörð Bjarmason (4):
Fix an enum assignment issue spotted by Sun Studio Fix a bitwise negation assignment issue spotted by Sun Studio Appease Sun Studio by renaming "tmpfile"
Suppress "statement not reached" warnings under Sun Studio

 builtin/fast-export.c |    4 ++--
 builtin/index-pack.c  |    6 +++---
 fast-import.c         |    8 ++++----
 pack-write.c          |    6 +++---
 read-cache.c          |    6 ++++++
 sha1_file.c           |   12 ++++++------
 test-treap.c          |    2 +-
 vcs-svn/repo_tree.c   |    2 +-
 vcs-svn/string_pool.c |    4 ++--
 xdiff/xutils.c        |    6 ++++++
 10 files changed, 34 insertions(+), 22 deletions(-)
Signature · 1 line
1.7.7.3