From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 145D7433D6 for ; Thu, 9 Jun 2022 21:02:52 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 62B6C68B5A0; Fri, 10 Jun 2022 00:02:50 +0300 (EEST) Received: from mail8.parnet.fi (mail8.parnet.fi [77.234.108.134]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B84B168B5A0 for ; Fri, 10 Jun 2022 00:02:43 +0300 (EEST) Received: from mail9.parnet.fi (mail9.parnet.fi [77.234.108.21]) by mail8.parnet.fi with ESMTP id 259L2hCE005961-259L2hCF005961 for ; Fri, 10 Jun 2022 00:02:43 +0300 Received: from foo.martin.st (host-97-187.parnet.fi [77.234.97.187]) by mail9.parnet.fi (Postfix) with ESMTPS id 0F9E1A142E for ; Fri, 10 Jun 2022 00:02:42 +0300 (EEST) Date: Fri, 10 Jun 2022 00:02:42 +0300 (EEST) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: FFmpeg development discussions and patches In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-FE-Policy-ID: 3:14:2:SYSTEM Subject: Re: [FFmpeg-devel] [PATCH v8 0/3] Support long file names on Windows X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Thu, 9 Jun 2022, nil-admirari@mailo.com wrote: >> This error isn't reproducible in git master - it's triggered by your >> yet-unmerged patches (that include wchar_filename.h in w32dlfcn.h). > > Ok. It can be fixed by either > - defining NO_DSHOW_STRSAFE in libavcodec/mf_utils.h > - or by migrating os_support.h to StrSafe.h functions. > > Which way is preferable? I think avoiding wcscat (with whatever usable alternative, not necessarily from strsafe.h) is the more robust solution, instead of having to play whack-a-mole with silencing such warnings. The 10 year old trac you referenced mentioned that the strsafe.h alternative functions weren't available in all toolchains used at that time though. Or if we'd add the define projectwide in e.g. configure it probably wouldn't be that bad? Kinda like how we already add "-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS" in MSVC builds. Then we wouldn't need to worry about missing it somewhere accidentally. // Martin _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".