just a small heads-up: on Fedora 26 x86_64 ns-3-dev will fail to build
in optimized mode due to GCC 7 failing with -Werror=maybe-uninitialized.
I believe this is a bug in the compiler and I reported it ; I would
suggest to wait for a while before implementing eventual workarounds in
ns-3 and will let you know if it gets fixed on GCC's side.