[MacPorts] #20918: New port: cppcheck

MacPorts noreply at macports.org
Mon Apr 5 07:00:57 PDT 2010


#20918: New port: cppcheck
----------------------------------------+-----------------------------------
 Reporter:  alek.silverstone@…          |       Owner:  macports-tickets@…                   
     Type:  request                     |      Status:  new                                  
 Priority:  Normal                      |   Milestone:                                       
Component:  ports                       |     Version:                                       
 Keywords:  new request                 |        Port:  cppcheck                             
----------------------------------------+-----------------------------------

Comment(by jpo@…):

 In order to compile the cppcheck command line tool in Leopard (10.5.8 with
 gcc 4.0.1) I had to disable the gcc -Wlogical-op flag

 {{{
 --- Makefile.orig       2010-03-09 18:07:43.000000000 +0000
 +++ Makefile    2010-04-04 20:50:04.000000000 +0100
 @@ -1,4 +1,4 @@
 -CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op
 -O2 -DNDEBUG
 +CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual  -O2 -DNDEBUG
  CXX=g++
  BIN=${DESTDIR}/usr/bin

 }}}

 otherwise the build process would terminate with the following error
 message:

 {{{
 cc1plus: error: unrecognized command line option "-Wlogical-op"
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/20918#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list