Git Product home page Git Product logo

Comments (5)

mmarzantowicz avatar mmarzantowicz commented on May 30, 2024

Could you post exact error message and more information about compiler you used? Actually your, line has more sense than the original one.

from gammu.

sgallou avatar sgallou commented on May 30, 2024

Same error and same fix under Ubuntu 14.04.

from gammu.

pschuegr avatar pschuegr commented on May 30, 2024

Sorry, I don't have the project around anymore to give you the compiler and error information. If I have to rebuild in future, I'll update.

from gammu.

sgallou avatar sgallou commented on May 30, 2024

Here is the error, but note that the fix from pschuegr is well, as ctx is pointer, sizeof(ctx) returns the size of the pointer, not the size of the pointed object.

ubuntu@ubuntu-VirtualBox:/domotique/gammu$ make
[ 1%] Built target string
[ 1%] Building C object libgammu/CMakeFiles/libGammu.dir/misc/coding/md5.c.o
/home/ubuntu/domotique/gammu/libgammu/misc/coding/md5.c: In function ‘MD5Final’:
/home/ubuntu/domotique/gammu/libgammu/misc/coding/md5.c:172:23: error: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive /
^
cc1: all warnings being treated as errors
make[2]: *
* [libgammu/CMakeFiles/libGammu.dir/misc/coding/md5.c.o] Erreur 1
make[1]: *** [libgammu/CMakeFiles/libGammu.dir/all] Erreur 2
make: *** [all] Erreur 2
ubuntu@ubuntu-VirtualBox:
/domotique/gammu$

from gammu.

nijel avatar nijel commented on May 30, 2024

Fixed in 2c9d94c.

from gammu.

Related Issues (20)

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.