glib-2.0 G_CONST_RETURN causing GCC "warning: const' on F31
by Stephan Bergmann
After switching to F31 beta I came across a GCC warning that looks like
it is useful, trying to warn about misguided uses of the G_CONST_RETURN
macro from glib-2.0. However, it leaves me puzzled:
> $ cat test.c
> #include "glib.h"
> G_CONST_RETURN char * f();
On F30:
> ~ gcc --version
> gcc (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)
> Copyright (C) 2019 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> ~ gcc $(pkg-config -cflags glib-2.0) -c test.c
works fine. On F31 beta,
> ~ gcc --version
> gcc (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)
> Copyright (C) 2019 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> ~ gcc $(pkg-config -cflags glib-2.0) -c test.c
> test.c:2:13: warning: const
> 2 | G_CONST_RETURN char * f();
> | ^~~~~~~
emits a cryptic warning (and gets the positioning of the squiggly
underline wrong).
On both F30 and F31, /usr/include/glib-2.0/glib/gmacros.h contains
> /* Deprecated -- do not use. */
> #ifndef G_DISABLE_DEPRECATED
> #ifdef G_DISABLE_CONST_RETURNS
> #define G_CONST_RETURN
> #else
> #define G_CONST_RETURN const
> #endif
> #endif
so I'm not sure what causes the warning to be emitted on F31 but not on F30.
(<https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#G-CON...>
states: "The macro can be used in place of const for functions that
return a value that should not be modified." So the intent of the
warning appears to be to warn about uses of G_CONST_RETURN that don't
make the return type const, but rather make the return type be e.g.
pointer-to-const as in my example.)
4 years, 9 months
Intent to retire cudd
by Jerry James
The upstream download site for the cudd package stopped responding about 8
months ago. About 4 months ago, the DNS entry for the upstream download
site disappeared. Strangely, the author's home page still has a link
pointing to that site.
In any case, nothing in Fedora uses cudd anymore. The cbmc package still
has a BuildRequires for cudd-devel, but doesn't appear to actually use it.
I intend to drop the BR from cbmc and retire cudd in F31 and Rawhide at the
end of this week.
If anybody wants to keep it, let me know.
--
Jerry James
http://www.jamezone.org/
4 years, 9 months
The last regular Minimization Team Meeting notes 2019-09-25
by Adam Samalik
Minutes:
https://meetbot.fedoraproject.org/fedora-meeting-1/2019-09-25/minimizatio...
Minutes (text):
https://meetbot.fedoraproject.org/fedora-meeting-1/2019-09-25/minimizatio...
Log:
https://meetbot.fedoraproject.org/fedora-meeting-1/2019-09-25/minimizatio...
============================================
#fedora-meeting-1: Minimization Team Meeting
============================================
Meeting started by asamalik at 15:00:10 UTC. The full logs are available
at
https://meetbot.fedoraproject.org/fedora-meeting-1/2019-09-25/minimizatio...
.
Meeting summary
---------------
* Roll call (asamalik, 15:00:11)
* === Admin === (asamalik, 15:04:54)
* -- #14 The weekly meeting -- (asamalik, 15:05:05)
* LINK: https://pagure.io/minimization/issue/14 (asamalik, 15:05:09)
* AGREED: Only schedule a meeting with interested parties if there's a
ticket that requires it. That means we cancel the weekly meeting,
and only schedule one when needed, as opposed to cancelling it when
there is no agenda. (+3 1 -0) (asamalik, 15:11:11)
* we continue to discuss in #fedora-devel or devel(a)lists.fp.o
(asamalik, 15:11:55)
* ACTION: asamalik to cancel the meeting as we've agreed (asamalik,
15:12:18)
* === Open Floor === (asamalik, 15:16:48)
Meeting ended at 15:20:22 UTC.
Action Items
------------
* asamalik to cancel the meeting as we've agreed
Action Items, by person
-----------------------
* asamalik
* asamalik to cancel the meeting as we've agreed
* **UNASSIGNED**
* (none)
People Present (lines said)
---------------------------
* asamalik (39)
* idf (16)
* zodbot (10)
* zbyszek (8)
* tdawson (3)
* ignatenkobrain (0)
* salimma (0)
* jaruga (0)
* feborges (0)
* pbrobinson (0)
* Son_Goku (0)
* lorbus (0)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
--
Adam Šamalík
---------------------------
Senior Software Engineer
Red Hat
4 years, 9 months