Opened 8 years ago

Closed 7 years ago

#938 closed Defect (fixed)

annoying perl warning when building configurations

Reported by: vichi Owned by: nemo
Priority: low Milestone: Unscheduled
Component: tools Version: release-3.4
Severity: Keywords: FCM
Cc:

Description

For those who continuously get many warnings like this

"Use of uninitialized value within @all_fields in lc"

when building the configuration, it can be solved by changing the following line in

NEMOGCM/EXTERNAL/fcm/lib/Fcm/CfgLine.pm

@@ -204,7 +204,7 @@ for my $name (qw/label slabel/) {
     my @all_fields = $self->$method;
 
     for my $i (0 .. $#fields) {
-      next if lc ($fields[$i]) eq lc ($all_fields[$i]);
+      next if lc ($fields[$i]) eq lc ($all_fields[$i] || '');
       $return = 0;
       last;
     }

please inform FCM developers in case.

Commit History (1)

ChangesetAuthorTimeChangeLog
3673vichi2012-11-27T13:59:21+01:00

Removed annoying warning during configuration build (Ticket #938)

Changed one line in FCM to remove all warnings when building a configuration.

Change History (1)

comment:1 Changed 7 years ago by vichi

  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from annoying perl warning when buolding configurations to annoying perl warning when building configurations

Fixed in revision 3673

Note: See TracTickets for help on using tickets.