sinojelly / mockcpp

Two C/C++ testing tools, mockcpp and testngpp.
Apache License 2.0
67 stars 42 forks source link

GCC compile warning: \mockcpp\include/mockcpp/mockcpp.h:59:1: Warning:identifier ‘static_assert’ is a keyword in C++11 #12

Closed GoogleCodeExporter closed 3 years ago

GoogleCodeExporter commented 9 years ago
====What steps will reproduce the problem?
Any test project including mockcpp under following enviorment will produce this 
problem.

=====What is the expected output? What do you see instead?
I don't want to have this warning. It make Eclipse/CDT think something wrong 
with test project, and I have to force Eclipse/CDT run executable everytime.

====What version of the product are you using? On what operating system?
version 2.6, Windows XP, MinGW, gcc 4.7.2. Eclipse/CDT

=====Please provide any additional information below.
This cause mockcpp.h define a struct called static_assert which confict with 
keyword of C++11.

Original issue reported on code.google.com by wu.hait...@zte.com.cn on 8 Jan 2013 at 12:56

sinojelly commented 3 years ago

fixed!