Revision: 65088
http://sourceforge.net/p/brlcad/code/65088
Author: brlcad
Date: 2015-05-28 21:14:47 +0000 (Thu, 28 May 2015)
Log Message:
-----------
yo dawg, I heard you like to quell warnings on your warning quellage.
compilers be gotten smart.
Modified Paths:
--------------
brlcad/trunk/src/libsysv/memset.c
brlcad/trunk/src/libsysv/strchr.c
brlcad/trunk/src/libsysv/strdup.c
brlcad/trunk/src/libsysv/strsep.c
brlcad/trunk/src/libsysv/strtok.c
Modified: brlcad/trunk/src/libsysv/memset.c
===================================================================
--- brlcad/trunk/src/libsysv/memset.c 2015-05-28 21:06:42 UTC (rev 65087)
+++ brlcad/trunk/src/libsysv/memset.c 2015-05-28 21:14:47 UTC (rev 65088)
@@ -26,27 +26,9 @@
#include "common.h"
-/* quell warnings */
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic push /* begin ignoring warnings */
-# pragma GCC diagnostic ignored "-Wunused-const-variable"
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic push /* begin ignoring warnings */
-# pragma clang diagnostic ignored "-Wunused-const-variable"
-# endif
-#endif
-
/* quell empty-compilation unit warnings */
-static const int unused = 0;
+const int memset_unused = 0;
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic pop
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic pop
-# endif
-#endif
/*
* defined for the folks that don't seem to have a system memset()
Modified: brlcad/trunk/src/libsysv/strchr.c
===================================================================
--- brlcad/trunk/src/libsysv/strchr.c 2015-05-28 21:06:42 UTC (rev 65087)
+++ brlcad/trunk/src/libsysv/strchr.c 2015-05-28 21:14:47 UTC (rev 65088)
@@ -31,28 +31,9 @@
#include "common.h"
-/* quell warnings */
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic push /* begin ignoring warnings */
-# pragma GCC diagnostic ignored "-Wunused-const-variable"
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic push /* begin ignoring warnings */
-# pragma clang diagnostic ignored "-Wunused-const-variable"
-# endif
-#endif
-
/* quell empty-compilation unit warnings */
-static const int unused = 0;
+const int strchr_unused = 0;
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic pop /* end ignoring warnings */
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic pop /* end ignoring warnings */
-# endif
-#endif
-
/*
* defined for folks that don't have a system strchr()
*/
Modified: brlcad/trunk/src/libsysv/strdup.c
===================================================================
--- brlcad/trunk/src/libsysv/strdup.c 2015-05-28 21:06:42 UTC (rev 65087)
+++ brlcad/trunk/src/libsysv/strdup.c 2015-05-28 21:14:47 UTC (rev 65088)
@@ -28,27 +28,9 @@
#include "common.h"
-/* quell warnings */
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic push /* begin ignoring warnings */
-# pragma GCC diagnostic ignored "-Wunused-const-variable"
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic push /* begin ignoring warnings */
-# pragma clang diagnostic ignored "-Wunused-const-variable"
-# endif
-#endif
-
/* quell empty-compilation unit warnings */
-static const int unused = 0;
+const int strdup_unused = 0;
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic pop /* end ignoring warnings */
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic pop /* end ignoring warnings */
-# endif
-#endif
#ifndef HAVE_STRDUP
#include "sysv.h"
Modified: brlcad/trunk/src/libsysv/strsep.c
===================================================================
--- brlcad/trunk/src/libsysv/strsep.c 2015-05-28 21:06:42 UTC (rev 65087)
+++ brlcad/trunk/src/libsysv/strsep.c 2015-05-28 21:14:47 UTC (rev 65088)
@@ -31,27 +31,9 @@
#include "common.h"
-/* quell warnings */
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic push /* begin ignoring warnings */
-# pragma GCC diagnostic ignored "-Wunused-const-variable"
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic push /* begin ignoring warnings */
-# pragma clang diagnostic ignored "-Wunused-const-variable"
-# endif
-#endif
-
/* quell empty-compilation unit warnings */
-static const int unused = 0;
+const int strsep_unused = 0;
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic pop /* end ignoring warnings */
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic pop /* end ignoring warnings */
-# endif
-#endif
/*
* This BSD version of strsep() is made available to systems that
Modified: brlcad/trunk/src/libsysv/strtok.c
===================================================================
--- brlcad/trunk/src/libsysv/strtok.c 2015-05-28 21:06:42 UTC (rev 65087)
+++ brlcad/trunk/src/libsysv/strtok.c 2015-05-28 21:14:47 UTC (rev 65088)
@@ -10,27 +10,9 @@
#include "common.h"
-/* quell warnings */
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic push /* begin ignoring warnings */
-# pragma GCC diagnostic ignored "-Wunused-const-variable"
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic push /* begin ignoring warnings */
-# pragma clang diagnostic ignored "-Wunused-const-variable"
-# endif
-#endif
-
/* quell empty-compilation unit warnings */
-static const int unused = 0;
+const int strtok_unused = 0;
-#if defined(HAVE_WUNUSED_CONST_VARIABLE)
-# if HAVE_GCC_DIAG_PRAGMAS
-# pragma GCC diagnostic pop /* end ignoring warnings */
-# elif HAVE_CLANG_DIAG_PRAGMAS
-# pragma clang diagnostic pop /* end ignoring warnings */
-# endif
-#endif
/*
* This public domain version of strtok() made available to systems that
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits