Adding warning removal pragma

This commit is contained in:
Jay McCarthy 2010-05-19 10:10:32 -05:00
parent 40c412d7ea
commit 776926141f
45 changed files with 62 additions and 4 deletions

View File

@ -19,6 +19,7 @@
/* wx_motif, for wxTimer: */
#ifdef __GNUG__
# pragma implementation "wx_timer.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#include "common.h"

View File

@ -1,5 +1,6 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -4,6 +4,7 @@
#if defined(__GNUC__)
# define MAYBE_UNUSED __attribute__((unused))
#pragma GCC diagnostic ignored "-Wwrite-strings"
#else
# define MAYBE_UNUSED
#endif

View File

@ -1,8 +1,9 @@
/****************************************************************/
/* This command-line parser is used by both Racket and Gracket. */
/****************************************************************/
#pragma GCC diagnostic ignored "-Wwrite-strings"
#define SDESC "Set! works on undefined identifiers"
char *cmdline_exe_hack =

View File

@ -24,7 +24,10 @@
* USA.
*/
#ifdef __GNUG__
#pragma implementation
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#ifdef wx_xt
# define Uses_wxApp

View File

@ -10,6 +10,9 @@
/* This file is the same for all three version of wxWindows from
PLT. */
#ifdef __GNUG__
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#if defined(_MSC_VER)
# include "wx.h"

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "AppMain.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XtIntrinsic

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "TypeTree.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_wxTypeTree

View File

@ -23,6 +23,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*/
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#include "wx.h"

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "Font.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XLib

View File

@ -10,6 +10,7 @@
#ifdef __GNUG__
#pragma implementation
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_wxApp

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "Button.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XtIntrinsic

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "Canvas.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XtIntrinsic

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "CheckBox.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XtIntrinsic

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "Frame.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XtIntrinsic

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "ListBox.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XtIntrinsic

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "Menu.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XtIntrinsic

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "Message.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XtIntrinsic

View File

@ -26,6 +26,7 @@
#ifdef __GNUG__
#pragma implementation "Window.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define Uses_XtIntrinsicP

View File

@ -29,6 +29,7 @@
#ifdef __GNUG__
#pragma interface
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#ifdef Have_Xt_Types

View File

@ -56,7 +56,9 @@
* Phone: (215) 898-8813
* EMail: bradley@cis.upenn.edu
*/
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#include <stdlib.h>
#include "wx_image.h"

View File

@ -35,6 +35,9 @@
*
* This software is provided "as is" without any express or implied warranty.
*/
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#include <stdlib.h>
#include "wx_image.h"

View File

@ -26,6 +26,9 @@
* DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH
* THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#ifdef wx_xview
#include <stdlib.h>

View File

@ -34,7 +34,9 @@
*
* This software is provided "as is" without any express or implied warranty.
*/
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#define NEEDSTIME

View File

@ -18,7 +18,9 @@
*
* This software is provided "as is" without any express or implied warranty.
*/
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
#include <stdlib.h>
#include "wx_image.h"