qdtk / openshadinglanguage

Automatically exported from code.google.com/p/openshadinglanguage
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

include of ext/hash_map generates compiler warning, does not play well with -Werror #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make osl on fedora 10 64bit

Original issue reported on code.google.com by crunch...@gmail.com on 16 Feb 2010 at 4:29

GoogleCodeExporter commented 9 years ago
What versions of gcc and so on are you using for x86_64?  The following is the
compiler output:

In file included from
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/hash_ma
p:64,
                 from /home/crunch/redacted/C/src/osl/src/liboslcomp/symtab.h:36,
                 from /home/crunch/redacted/C/src/osl/src/liboslcomp/ast.h:36,
                 from /home/crunch/redacted/C/src/osl/src/liboslcomp/oslcomp_pvt.h:40,
                 from /home/crunch/redacted/C/src/osl/src/liboslcomp/ast.cpp:37:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/backward/ba
ckward_warning.h:33:2:
error: #warning This file includes at least one deprecated or antiquated header 
which
may be removed without further notice at a future date. Please use a 
non-deprecated
interface with equivalent functionality instead. For a listing of replacement 
headers
and interfaces, consult the file backward_warning.h.

I will try to go in and modify the Makefiles, but they claim that they are 
generated
by cmake and should not be edited by hand.  

Passing -Wno-deprecated through cmake and then through make to the compiler is 
not
working for me.  It does not make it through to the compile line, perhaps 
because of
recursively invoked cmake or make. Or perhaps I'm just doing it wrong.

What does your ext/hash_map file look like and what version of g++ are you 
using?

Original comment by crunch...@gmail.com on 17 Feb 2010 at 1:57