mirror of
https://github.com/nasa/trick.git
synced 2025-02-22 09:51:06 +00:00
closes #1141 If you use the -Wshadow flag, there are few compiler warnings for shadowing. You can recreate with the Ball L1 sim: % vi S_overrides.mk TRICK_CFLAGS += -Wshadow -I../models TRICK_CXXFLAGS += -Wshadow -I../models % trick-CP ... In file included from build/S_source.cpp:3:0: build/../S_source.hh: In member function ‘void EventManagerSimObject::create_thread_process_event()’: build/../S_source.hh:425:23: warning: declaration of ‘name’ shadows a member of 'this' [-Wshadow] char* name = strdup(oss.str().c_str()) ; To fix the S_source* generated code, it is just a matter of changing default_trick_sys.sm.