openflow: Update docs and add compilation flag required by Clang

This commit is contained in:
Gabriel Arrobo
2022-05-16 12:55:35 +00:00
committed by Gabriel Ferreira
parent 9fbb26f04f
commit 7d9543b6f7
2 changed files with 7 additions and 3 deletions

View File

@@ -50,7 +50,11 @@ set(NS3_OPENFLOW
"ON if Openflow is found in NS3_WITH_OPENFLOW"
)
add_compile_options(-Wno-stringop-truncation)
if(${GCC})
add_compile_options(-Wno-stringop-truncation) # This option does not exist in CLANG
elseif(${CLANG})
add_compile_options(-Wno-reserved-user-defined-literal)
endif()
build_lib(
LIBNAME openflow

View File

@@ -146,8 +146,8 @@ To do this:
From the "openflow" directory, run::
$ ./ns3 configure
$ ./ns3 build
$ ./waf configure
$ ./waf build
2. Your OFSID is now built into a libopenflow.a library!
To link to an ns-3 build with this OpenFlow switch module, run from the ns-3-dev