Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove redundant moves in return statements With recent g++ versions: ../include/bm/bm_sim/queueing.h:780:24: error: redundant move in return statement [-Werror=redundant-move] 780 | return std::move(fn); | ^ ../include/bm/bm_sim/queueing.h:780:24: note: remove 'std::move' call cc1plus: all warnings being treated as error While copy elision is not possible when retruning a function parameter, if the other conditions for NVO are met, a move operation should be used. The std::move doesn't cause the compiler to perform worse (unlike for RVO), but it is redundant. * Do not treat deprecated-declarations warnings as errors When compiling code which depends on the generated Protobuf code for P4Runtime. * Fix linking for example program in simple_switch_grpc/tests Linking was broken after Ubuntu 20.04 / gcc 9 upgrade. Not sure exactly why but removing some unused library dependencies can resolve the issue ("undefined reference" for PI symbols).
- Loading branch information