Fix/suppress some warnings
#31
Merged
MicheleC
merged 2 commits from fix/warnings
into master
12 months ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'fix/warnings'
Deleting a branch is permanent. It CANNOT be undone. Continue?
subj;
0377a62496
toad0516738d
12 months ago@ -327,2 +327,2 @@
textW=textRect(false).width();
textH=textRect(false).height();
// textW=textRect(false).width();
// textH=textRect(false).height();
Why comment instead of removal?
I wasn't reading too deep into the code. To the best of my assessment it seems the values are actually not needed, but in case I am wrong and that warning was actually indicating a bug, this may be at least a small hint in future, what could be wrong here.
Am I overthinking this?
I don't see any specific reasons to keep those as commented code. Removal seems fine to me.
removed
@ -318,3 +315,1 @@
&& buffer[5]==10
&& buffer[6]==26
&& buffer[7]==10
) || ( // PNG signature
Can I suggest we put the
)
before the#ifdef
and then close the PNG part before the#endif
? Mixing parenthesis level with preprocessor code can lead to confusion and definitely will not help uncrustify-trinity when we come to formatting indentation of this part.fixed
ad0516738d
toa8bf4dbf8a
12 months agoLooks good
a8bf4dbf8a
into master 12 months agoReviewers
a8bf4dbf8a
.