gcc warning
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
ddefa2a28d
commit
96718187e1
|
|
@ -369,7 +369,7 @@ add_custom_command(OUTPUT ${STA_TCL_INIT}
|
||||||
# CMAKE_FIND_FRAMEWORK LAST bypasses the version in the framework directory
|
# CMAKE_FIND_FRAMEWORK LAST bypasses the version in the framework directory
|
||||||
# but not the one in /usr/lib.
|
# but not the one in /usr/lib.
|
||||||
# This calls cmake/FindTCL.cmake
|
# This calls cmake/FindTCL.cmake
|
||||||
# Do not use REQUIRED because it also requires TK.
|
# Do not use REQUIRED because it also requires TK, which is not used by OpenSTA.
|
||||||
find_package(TCL)
|
find_package(TCL)
|
||||||
|
|
||||||
# Zlib
|
# Zlib
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ protected:
|
||||||
// Report an error condition that should not be possible.
|
// Report an error condition that should not be possible.
|
||||||
// The default handler prints msg to stderr and exits.
|
// The default handler prints msg to stderr and exits.
|
||||||
// The msg should NOT include a period or return.
|
// The msg should NOT include a period or return.
|
||||||
// For only in those cases where a Report object is not available.
|
// Only for use in those cases where a Report object is not available.
|
||||||
#define criticalError(id,msg) \
|
#define criticalError(id,msg) \
|
||||||
Report::defaultReport()->fileCritical(id, __FILE__, __LINE__, msg)
|
Report::defaultReport()->fileCritical(id, __FILE__, __LINE__, msg)
|
||||||
|
|
||||||
|
|
|
||||||
14
tcl/StaTcl.i
14
tcl/StaTcl.i
|
|
@ -4136,12 +4136,13 @@ crpr_mode()
|
||||||
void
|
void
|
||||||
set_crpr_mode(const char *mode)
|
set_crpr_mode(const char *mode)
|
||||||
{
|
{
|
||||||
|
Sta *sta = Sta::sta();
|
||||||
if (stringEq(mode, "same_pin"))
|
if (stringEq(mode, "same_pin"))
|
||||||
Sta::sta()->setCrprMode(CrprMode::same_pin);
|
Sta::sta()->setCrprMode(CrprMode::same_pin);
|
||||||
else if (stringEq(mode, "same_transition"))
|
else if (stringEq(mode, "same_transition"))
|
||||||
Sta::sta()->setCrprMode(CrprMode::same_transition);
|
Sta::sta()->setCrprMode(CrprMode::same_transition);
|
||||||
else
|
else
|
||||||
criticalError(272, "unknown common clk pessimism mode.");
|
sta->report()->critical(272, "unknown common clk pessimism mode.");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
@ -5063,16 +5064,15 @@ set_clock_sense_cmd(PinSet *pins,
|
||||||
bool negative,
|
bool negative,
|
||||||
bool stop_propagation)
|
bool stop_propagation)
|
||||||
{
|
{
|
||||||
ClockSense sense;
|
Sta *sta = Sta::sta();
|
||||||
if (positive)
|
if (positive)
|
||||||
sense = ClockSense::positive;
|
sta->setClockSense(pins, clks, ClockSense::positive);
|
||||||
else if (negative)
|
else if (negative)
|
||||||
sense = ClockSense::negative;
|
sta->setClockSense(pins, clks, ClockSense::negative);
|
||||||
else if (stop_propagation)
|
else if (stop_propagation)
|
||||||
sense = ClockSense::stop;
|
sta->setClockSense(pins, clks, ClockSense::stop);
|
||||||
else
|
else
|
||||||
criticalError(273, "unknown clock sense");
|
sta->report()->critical(273, "unknown clock sense");
|
||||||
Sta::sta()->setClockSense(pins, clks, sense);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue