CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

wmake patch to allow for -isystem in Make/options

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2014, 04:49
Default wmake patch to allow for -isystem in Make/options
  #1
Member
 
Timm Severin
Join Date: Mar 2014
Location: Munich
Posts: 63
Rep Power: 12
Astrodan is on a distinguished road
Hi everyone,

I am currently trying to adapt a solver and got annoyed by the compiler warnings regarding unused variables in readPISOControls.H, so I adapted the wmake tool to accept -isystem entries in the Make/options file and thought I'd share this here and ask other people to test it, since I'm not 100% certain my changes were sufficient.

Attached is a patch file which has to be applied to $WM_PROJECT_DIR/wmake/src/wmkdep.l. Once patched, you need to recompile wmake by executing make in $WM_PROJECT_DIR/wmake/src/.
After that you can have an Make/option file similar to
Code:
EXE_INC = \
    -isystem$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/sampling/lnInclude

EXE_LIBS = \
    -lfiniteVolume \
    -lsampling
which will avoid warnings occuring in all include files from the finiteVolume directory.

As you might have noticed, I'm working with the current git version of OF-2.3.x, so changes might be necessary for other versions (though at least for 2.x series I doubt that).
Attached Files
File Type: patch wmkdep.patch (1.2 KB, 0 views)
__________________
PhD Student at the Institute of Biochemical Engineering at TU München
Modelling of fluid dynamics in open photobioreactors.

System:
OpenFOAM 2.3.x, 64bit, 8 Core Xeon Workstation
Astrodan is offline   Reply With Quote

Reply

Tags
isystem, wmake warning


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 13:28


All times are GMT -4. The time now is 19:17.