Giter Site home page Giter Site logo

wisol's People

Contributors

codacy-badger avatar kmilo17pet avatar manuelposada avatar thejbte avatar

Stargazers

 avatar

Watchers

 avatar  avatar

wisol's Issues

minor code improvements; check the log below

gcc -Wall -flto -Wextra -Wimplicit-fallthrough=0 -Wformat-security -Wduplicated-cond -Wfloat-equal -Wshadow -Wconversion -Wsign-conversion -Wjump-misses-init -Wlogical-not-parentheses -Wnull-dereference -Wnull-dereference -Wstringop-overflow -fprofile-arcs -ftest-coverage -fstrict-aliasing -O2 -std=c89 -pedantic -D_POSIX_C_SOURCE=199309L -MD -Wstrict-aliasing -I. -I./src/Sigfox/ -I./src/main/ -I./src/test/ -c src/Sigfox/wssfm1xrx.c -o obj/src/Sigfox/wssfm1xrx.o
Compiling obj/src/Sigfox/wssfm1xrx.o [WARNING]
In file included from src/Sigfox/wssfm1xrx.c:19:0:
src/Sigfox/wssfm1xrx.h:177:16: warning: comma at end of enumerator list [-Wpedantic]
WSSFM1XRX_RCZ6,
^
src/Sigfox/wssfm1xrx.c: In function ‘WSSFM1XRX_AskChannels’:
src/Sigfox/wssfm1xrx.c:368:18: warning: conversion to ‘uint8_t {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
Channels->x = (uint8_t)obj->RxFrame[0]- (uint8_t)'0';/* ((rspPtr-1))-(uint8_t)'0';/ /non compliant misra c 18.4/
^
src/Sigfox/wssfm1xrx.c:369:18: warning: conversion to ‘uint8_t {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
Channels->y = (uint8_t)obj->RxFrame[2] -(uint8_t)'0' ; /* ((rspPtr+1))-(uint8_t)'0'; /
^
src/Sigfox/wssfm1xrx.c: In function ‘WSSFM1XRX_SendMessage’:
src/Sigfox/wssfm1xrx.c:505:17: warning: conversion to ‘uint8_t {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
uint8_t slen = ((uint8_t)2
size) + (uint8_t)6; /misra c 10.4 & 12.1/
^
src/Sigfox/wssfm1xrx.c: In function ‘DL_DiscriminateDownLink’:
src/Sigfox/wssfm1xrx.c:629:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
uint8_t i;
^~~~~~~
src/Sigfox/wssfm1xrx.c:635:16: warning: conversion to ‘uint8_t {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
byteIndex += (uint8_t)WSSFM1XRX_DL_BYTES_OFFSET;
^
src/Sigfox/wssfm1xrx.c: In function ‘WSSFM1XRX_BuildFrame’:
src/Sigfox/wssfm1xrx.c:677:14: warning: conversion to ‘uint8_t {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
finalsize = sizecopy
((uint8_t)2);
^~~~~~~~
src/Sigfox/wssfm1xrx.c:680:10: warning: conversion to ‘int8_t {aka signed char}’ from ‘int’ may alter its value [-Wconversion]
for(i = ((int8_t)sizecopy-1) ; i >= 0; i--){ /*misra 10.4 */
^
src/Sigfox/wssfm1xrx.c: In function ‘NibbletoX’:
src/Sigfox/wssfm1xrx.c:704:8: warning: conversion to ‘uint8_t {aka unsigned char}’ from ‘int’ may alter its value [-Wconversion]
c_h = (value & (uint8_t)0x0Fu) + (uint8_t)'0' ;
^
src/Sigfox/wssfm1xrx.c:706:36: warning: conversion to ‘char’ from ‘int’ may alter its value [-Wconversion]
return (ch > (char)'9')? (ch + 7) : ch;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.