Code Monkey home page Code Monkey logo

Comments (4)

tnsardesai avatar tnsardesai commented on June 15, 2024 1

Hi @dasebe, I encountered the same issue when trying to compile using both g++ and clang++ on OSX. I found the root cause is the move statements as mentioned in the error by OP. The reason you aren't seeing it in GCC 7.2.0 is because -Wall doesn't turn on -Wpessimizing-move which catches these kinds of warnings. The latest version of GCC, clang (the default versions on OSX) turns on -Wpessimizing-move in -Wall.

Reference docs:
GCC 7.2.0
GCC 10.0.0

Fix is to remove the call to move in cache.h at line 79 and webcachesim.cpp at line 24.

from webcachesim.

dasebe avatar dasebe commented on June 15, 2024

Hi @lakshit07,
which compiler are you using?
I just checked the current version and with g++ (GCC) 7.2.0 there are no compilation warnings or errors. I've also checked GCC 6, and all work as well.

Are you maybe using LLVM/Clang? I don't typically use that compiler, but I'm happy to help debug and fix. Does Clang's suggestion work for you?

from webcachesim.

lakshit07 avatar lakshit07 commented on June 15, 2024

Hi @dasebe
On running g++ --version I get

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr /include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Which Clang suggestion are you referring to?

from webcachesim.

dasebe avatar dasebe commented on June 15, 2024

Entirely right, fixed in 26223b2

from webcachesim.

Related Issues (9)

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.