[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#441614: #warning and -pedantic



You cannot use #warning together with -pedantic.  You have to get rid
of one or the other.

(sid)2537:tbm@em64t: ~/src] cat > t.cc
#warning "foo"
(sid)2538:tbm@em64t: ~/src] /usr/lib/gcc-snapshot/bin/g++ -c t.cc
t.cc:1:2: warning: #warning "foo"
(sid)2539:tbm@em64t: ~/src] /usr/lib/gcc-snapshot/bin/g++ -c -pedantic t.cc
t.cc:1:2: error: #warning is a GCC extension
t.cc:1:2: warning: #warning "foo"
zsh: exit 1     /usr/lib/gcc-snapshot/bin/g++ -c -pedantic t.cc

-- 
Martin Michlmayr
http://www.cyrius.com/




Reply to: