public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jaak at ristioja dot ee" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/16458] endian.h macros return integers of wrong type
Date: Thu, 16 Jan 2014 15:16:00 -0000	[thread overview]
Message-ID: <bug-16458-131-VjkxqAzTkw@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-16458-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=16458

Jaak Ristioja <jaak at ristioja dot ee> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #4 from Jaak Ristioja <jaak at ristioja dot ee> ---
Indeed. But I should also get a warning from this:

  #define _BSD_SOURCE
  #include <endian.h>  
  int main() {
    const long int i = 42;
    const long int b = htole64(i);
    return (int) b;
  }

Which I don't:

$ gcc -Wall -Wextra -Wsign-conversion -Wconversion
-Wimplicit-function-declaration test5.c -c

-- 
You are receiving this mail because:
You are on the CC list for the bug.


  parent reply	other threads:[~2014-01-16 15:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16 12:47 [Bug libc/16458] New: " jaak at ristioja dot ee
2014-01-16 13:14 ` [Bug libc/16458] " neleai at seznam dot cz
2014-01-16 13:43 ` jaak at ristioja dot ee
2014-01-16 15:09 ` neleai at seznam dot cz
2014-01-16 15:16 ` jaak at ristioja dot ee [this message]
2014-01-16 19:04 ` joseph at codesourcery dot com
2014-01-16 19:47 ` jaak at ristioja dot ee
2014-01-16 20:14 ` [Bug libc/16458] endian.h and netinet/in.h byte order macros return unsigned " jaak at ristioja dot ee
2014-01-16 20:17 ` [Bug libc/16458] endian.h and netinet/in.h byte order macros return values " jaak at ristioja dot ee
2014-01-16 20:45 ` neleai at seznam dot cz
2014-06-13  8:56 ` fweimer at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-16458-131-VjkxqAzTkw@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).