Fix/suppress some warnings #31

Merged
MicheleC merged 2 commits from fix/warnings into master 12 months ago
Collaborator

subj;

subj;
Fat-Zer added 2 commits 12 months ago
fddb921ac6 Suppress several warnings
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
0377a62496 fix an incorrect condition in ImageViewController::eventFilter()
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Fat-Zer force-pushed fix/warnings from 0377a62496 to ad0516738d 12 months ago
SlavekB reviewed 12 months ago
@ -327,2 +327,2 @@
textW=textRect(false).width();
textH=textRect(false).height();
// textW=textRect(false).width();
// textH=textRect(false).height();
Owner

Why comment instead of removal?

Why comment instead of removal?
Poster
Collaborator

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 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?
Owner

I don't see any specific reasons to keep those as commented code. Removal seems fine to me.

I don't see any specific reasons to keep those as commented code. Removal seems fine to me.
Poster
Collaborator

removed

removed
Fat-Zer marked this conversation as resolved
MicheleC reviewed 12 months ago
@ -318,3 +315,1 @@
&& buffer[5]==10
&& buffer[6]==26
&& buffer[7]==10
) || ( // PNG signature
Owner

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.

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.
Poster
Collaborator

fixed

fixed
Fat-Zer marked this conversation as resolved
Fat-Zer force-pushed fix/warnings from ad0516738d to a8bf4dbf8a 12 months ago
MicheleC approved these changes 12 months ago
MicheleC left a comment
Owner

Looks good

Looks good
MicheleC merged commit a8bf4dbf8a into master 12 months ago
MicheleC deleted branch fix/warnings 12 months ago
MicheleC added this to the R14.1.2 release milestone 12 months ago

Reviewers

MicheleC approved these changes 12 months ago
The pull request has been merged as a8bf4dbf8a.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TDE/gwenview#31
Loading…
There is no content yet.