Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

avoid warning about gccversion being non-numeric

  • Loading branch information...
commit 53ea6b6f6eb9b8732a872c506f52cc700222365a 1 parent ea14052
Tony Cook authored August 08, 2011

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  Makefile.PL
3  Makefile.PL
@@ -734,7 +734,7 @@ EOS
734 734
     }
735 735
     print CONFIG "#define $define->[0] $define->[1]\n";
736 736
   }
737  
-  if ($Config{gccversion} && $Config{gccversion} > 3) {
  737
+  if ($Config{gccversion} && $Config{gccversion} =~ /^([0-9]+)/ && $1 > 3) {
738 738
     print CONFIG <<EOS;
739 739
 /*
740 740
 
@@ -743,6 +743,7 @@ Compiler supports the GCC __attribute__((format...)) syntax.
743 743
 */
744 744
 
745 745
 #define IMAGER_FORMAT_ATTR 1
  746
+
746 747
 EOS
747 748
   }
748 749
 

0 notes on commit 53ea6b6

Please sign in to comment.
Something went wrong with that request. Please try again.