Skip to content

Commit

Permalink
'showelem.cpp' : -Wshadow revealed a shadowed variable here. Again, n…
Browse files Browse the repository at this point in the history
…o actual error occurred, but it's not good practice.
  • Loading branch information
Bill-Gray committed Jul 1, 2024
1 parent 69063fa commit 676d679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions showelem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ int DLL_FUNC elements_in_mpc_format( char *obuff, const size_t obuff_size,
if( format & SHOWELEM_PERIH_TIME_MASK)
{
char hhmmss[20];
int format = FULL_CTIME_TIME_ONLY | CALENDAR_JULIAN_GREGORIAN;
int time_format = FULL_CTIME_TIME_ONLY | CALENDAR_JULIAN_GREGORIAN;

if( precision > 5)
format |= FULL_CTIME_N_PLACES( precision - 5);
full_ctime( hhmmss, elem->perih_time, format);
time_format |= FULL_CTIME_N_PLACES( precision - 5);
full_ctime( hhmmss, elem->perih_time, time_format);
snprintf_append( obuff, endptr - obuff, " = %s (JD %.*f)",
hhmmss, precision, elem->perih_time);
}
Expand Down

0 comments on commit 676d679

Please sign in to comment.