Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fightwarn - unclassified fixes #858

Merged

Conversation

jimklimov
Copy link
Member

Fixes to various small issues discovered thanks to CI improvements from #844

Seems this is a correct change logically:
- if( !( SourceFail ) == RedeAnterior )
+ if( RedeAnterior == !( SourceFail ) )

given this assignment just below the if-clause:
  RedeAnterior = !( SourceFail );

to avoid a compiler warning that "!" might apply not in a way intended by author
Avoids error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]
hidparser.c:347:28: error: comparison is always false due
to limited range of data type [-Werror=type-limits]
  347 |  if(pParser->Data.ReportID >= MAX_REPORT)
uint8_t vs "500"

CC @aquette
@@ -62,7 +62,6 @@ static nutscan_device_t * dev_ret = NULL;
#ifdef HAVE_PTHREAD
static pthread_mutex_t dev_mutex;
#endif
long g_usec_timeout ;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aquette : was there any use or plan for this variable, or was it just some copy-paste artifact?

@lgtm-com
Copy link

lgtm-com bot commented Nov 8, 2020

This pull request introduces 2 alerts when merging 8808f9d into 8c1ad08 - view on LGTM.com

new alerts:

  • 2 for FIXME comment

@lgtm-com
Copy link

lgtm-com bot commented Nov 9, 2020

This pull request introduces 3 alerts when merging 6e98a25 into 8c1ad08 - view on LGTM.com

new alerts:

  • 3 for FIXME comment

@lgtm-com
Copy link

lgtm-com bot commented Nov 9, 2020

This pull request introduces 3 alerts and fixes 1 when merging 8e7f9d595f0115335962d94ed0c061e229cf731a into 8d2e761 - view on LGTM.com

new alerts:

  • 3 for FIXME comment

fixed alerts:

  • 1 for Comparison result is always the same

@lgtm-com
Copy link

lgtm-com bot commented Nov 9, 2020

This pull request introduces 3 alerts and fixes 1 when merging 7e7a433d0929c340a08f4a72a3b8ed00a53fd961 into 8d2e761 - view on LGTM.com

new alerts:

  • 3 for FIXME comment

fixed alerts:

  • 1 for Comparison result is always the same

@jimklimov jimklimov force-pushed the fightwarn-unclassified-fixes branch from 7e7a433 to 1bc47ef Compare November 9, 2020 15:07
@lgtm-com
Copy link

lgtm-com bot commented Nov 9, 2020

This pull request introduces 3 alerts when merging 1bc47ef into 26c8994 - view on LGTM.com

new alerts:

  • 3 for FIXME comment

@jimklimov jimklimov merged commit 0b53180 into networkupstools:master Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant