Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3982)

Issue 5477051: Fixes various warnings from clang++ (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by Graham Percival
Modified:
12 years, 4 months ago
Reviewers:
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Fixes various warnings from clang++ These changes leave the regtests unchanged. This is a branch with a series of commits; 1 commit per file. Avoid redefining struct String_convert to class. Avoid comparison of unsigned < 0 PyArg_ParseTuple (args, "s#|i", &track, &track_size, ... returns the length as an int: http://docs.python.org/c-api/arg.html#PyArg_ParseTuple Avoid implicit sign conversion Remove default comparison for binary search clang++ complains about this, and we never rely on the default comparison in our code. /home/gperciva/src/lilypond/flower/include/std-vector.hh:197:36: error: 'T' does not refer to a value Compare less = less<T> (), ^ /home/gperciva/src/lilypond/flower/include/std-vector.hh:193:19: note: declared here template<typename T, typename Compare> ^ /home/gperciva/src/lilypond/flower/include/std-vector.hh:197:40: error: expected expression Compare less = less<T> (), Avoid conversion changing signedness /home/gperciva/src/lilypond/flower/file-cookie.cc:45:50: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion] return Memory_out_stream::writer (file, buf, i); ~~~~~~~~~~~~~~~~~ ^

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -10 lines) Patch
M flower/file-cookie.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M flower/getopt-long.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M flower/include/flower-proto.hh View 1 chunk +2 lines, -2 lines 0 comments Download
M flower/include/std-vector.hh View 1 chunk +1 line, -1 line 0 comments Download
M python/midi.c View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 1
Graham Percival
12 years, 4 months ago (2011-12-09 14:21:09 UTC) #1
A few minor fixes; I think they're all ok, but I can't claim any deep
understanding of the code in question.

Regtests were unchanged.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b