Bugzilla – Bug 1103
Useless assignment in omnet-data-output.cc
Last modified: 2011-05-13 16:46:39 UTC
Created attachment 1081 [details] Patch that silents both unused variable and useless assignment warnings. src/stats/model/omnet-data-output.cc, in the function isNumeric, contains "useless" assignment (to silent compiler warning regarding unused variable). This causes warnings when the compiler is set to check for useless assignments. Attached patch uses different code that avoids the use of this variable, and is slightly more verbose, but may not cover the entire range of inputs.
Created attachment 1082 [details] Updated patch Patched code now recognises the following number format: [-][\d]*[.[\d]*][e[-][\d]*[.[\d]*]] (note - will accept "-", ".", "e" , "e.", etc as well)
Bug closed. ns-3-dev changeset: 4e1d562d5029