🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #160

[Bug 299631] Compiling with: "clang -Wall test.cxx -lc++": clang(1) produces an error/warning due to the printf(3) conversion.

#160
From: bugzilla-noreply
Date: Tue, 20 Oct 2026 09:39
53 lines
3629 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299631

            Bug ID: 299631
           Summary: Compiling with: "clang -Wall test.cxx -lc++":
                    clang(1) produces an error/warning due to the
                    printf(3) conversion.
           Product: Base System
           Version: 14.5-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: linimon@FreeBSD.org

[Note: submitted on behalf of user who requests anonymity 20261019.]

In this example program (i.e. test.cxx):

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int main (void) {
uint64_t blah = 1234;
printf ("%w64u\n", blah);
exit (0);
}

Compiling with: "clang -Wall test.cxx -lc++":

clang(1) produces an error/warning due to the printf(3) conversion.

I can't remember exactly what the error/warning was/is, but I checked the
manual page for printf(3) several times and as far as I can tell the above
printf(3) syntax is correct (according to the manual page).

There was another "bug" which had to do with the printf(3) manual page being
unreadable (I checked the OpenBSD manual page for it - which is readable).

Note that the above test program is recalled from memory .... I'm typing this
on an apple mac computer - not my freebsd one.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-299631-227@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 299631] Compiling with: "clang -Wall test.cxx -lc++":  clang(1)
 produces an error/warning due to the printf(3) conversion.
Date: Tue, 20 Oct 2026 09:39:04 +0000
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-bugs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-299631-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="74352"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1792489145;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=d6ZGU+/H2SeG+CW4iPICzdzaqHNwmtsDGlB1atIYuBU=;
	b=KuC3Vaj29MrECNUt194DUAAIrrrajX9VSw0KVFSE96d+oVo2IVV2aDojlZIRFuuVWf9DYe
	S4YJfQ+l2RatEQTLM3hjB4E69q9CpRi4UrUpc7f3k9O59exfm0G548flUQ5Xy2gspZQ6jA
	vXCOIfx6nXwnqCBk6EGn6Bvew57tzrCr+z+JO09+ve+H61wFKafo3UtudEZJL5sfbFUwqs
	4GWorz8fwUX7rmPH+QvjL6I+K8VSKeAkFC2s0zkjK8iK3UVRKBXniBZBCaCk73wsh/t4GZ
	WMd62Qbwy9ioQ15Ca+UytBHjMWdE2dlCJ7oXDm5ezUjLBClnBzkSu994c9cN4w==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes