Re: [Mingw-w64-public] C++ cout executable size

2017-06-04 Thread David Grayson
I was able to reproduce your problem. The issue is that you declared a variable named stdout, which is a name used by the C standard. Just rename that variable. --David On Sun, Jun 4, 2017 at 8:31 AM, bob by wrote: > 2017-06-02 15:47 GMT+04:00 bob by

Re: [Mingw-w64-public] C++ cout executable size

2017-06-04 Thread bob by
2017-06-02 15:47 GMT+04:00 bob by > Can somebody here write a replacement for the standard cout, that will be > able to print strings and integers, and internally will just redirect to > puts and itoa? I'm only starting with C++, I'm not sure how to do it. > So, I'm

Re: [Mingw-w64-public] [PATCH] stralign: cast ua_wcschr and ua_wcsrchr returns to wchar_t *

2017-06-04 Thread Mateusz Mikuła
I sent patch casting to PUWSTR_C half hour after first message when I noticed how stupid it was before. Should still apply cleanly (attachment has wrong name): https://sourceforge.net/p/mingw-w64/mailman/message/35770400/ -- Original Message -- Subject: Re: [Mingw-w64-public] [PATCH]

Re: [Mingw-w64-public] [PATCH] stralign: cast ua_wcschr and ua_wcsrchr returns to wchar_t *

2017-06-04 Thread Norbert Pfeiler
1st point was to use PUWSTR_C instead of wchar_t * for the cast, still stands. 2nd point was to »to avoid further warnings« and i would like to – once again – vote to avoid union casts. As far as i know there is no reason to believe that -Wcast-qual (as well as -Wsystem-headers) will be a default

Re: [Mingw-w64-public] [PATCH] stralign: cast ua_wcschr and ua_wcsrchr returns to wchar_t *

2017-06-04 Thread Mateusz Mikuła
Anything to improve? From 05bc4cbc93f5f9942fc28a578dc1afa68d69daa2 Mon Sep 17 00:00:00 2001 From: Mateusz Mikula Date: Sun, 4 Jun 2017 11:33:22 +0200 Subject: [PATCH] cast ua_wcschr and ua_wcsrchr returns when WSTR_ALIGNED is true Clang doesn't allow implicit conversion form

[Mingw-w64-public] implicit-fallthrough GCC warning as error in gendef/genpeimg

2017-06-04 Thread Ruben Van Boxem
Hi, GCC 7.1 warns on implicit fallthrough in switch-case. Adding attributes or comments silences this warning. See https://sourceforge.net/p/mingw-w64/bugs/616/ Attached patch solves this for gendef and genpeimg. Please apply if OK. Ruben diff --git a/mingw-w64-tools/gendef/src/gendef.c