mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-11-25 04:35:44 +00:00
Clean up more Windows warnings.
* src/config.h.W32.template: Re-enable warnings that we don't violate. Add a new disabled warning: 4130 (logical operation on address of string constant). * src/w32/compat/posixfcn.c: Make makeint.h the first included header. * src/w32/subproc/sub_proc.c: Ditto. It includes config.h already.
This commit is contained in:
parent
9e4b3d3f4c
commit
c5d4b7b2f2
3 changed files with 7 additions and 7 deletions
|
@ -19,12 +19,11 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||
Maybe after the code cleanup for ISO C we can remove some/all of these. */
|
||||
#if _MSC_VER > 1000
|
||||
# pragma warning(disable:4100) /* unreferenced formal parameter */
|
||||
# pragma warning(disable:4102) /* unreferenced label */
|
||||
# pragma warning(disable:4127) /* conditional expression is constant */
|
||||
# pragma warning(disable:4130) /* logical operation on address of string constant */
|
||||
# pragma warning(disable:4131) /* uses old-style declarator */
|
||||
# pragma warning(disable:4702) /* unreachable code */
|
||||
# define _CRT_SECURE_NO_WARNINGS /* function or variable may be unsafe */
|
||||
# define _CRT_NONSTDC_NO_WARNINGS /* functions w/o a leading underscore */
|
||||
# define _CRT_SECURE_NO_WARNINGS 1 /* function or variable may be unsafe */
|
||||
# define _CRT_NONSTDC_NO_WARNINGS 1 /* functions w/o a leading underscore */
|
||||
#endif
|
||||
|
||||
/* Define to 1 if the 'closedir' function returns void instead of 'int'. */
|
||||
|
|
|
@ -15,6 +15,8 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "makeint.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <io.h>
|
||||
#include <stdarg.h>
|
||||
|
@ -23,7 +25,6 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include "dlfcn.h"
|
||||
|
||||
#include "makeint.h"
|
||||
#include "job.h"
|
||||
|
||||
#ifndef NO_OUTPUT_SYNC
|
||||
|
|
|
@ -14,8 +14,9 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "makeint.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <io.h> /* for _get_osfhandle */
|
||||
|
@ -29,7 +30,6 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <signal.h>
|
||||
#include <windows.h>
|
||||
|
||||
#include "makeint.h"
|
||||
#include "filedef.h"
|
||||
#include "variable.h"
|
||||
#include "sub_proc.h"
|
||||
|
|
Loading…
Reference in a new issue