unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [RFC PATCH 0/9] -std=c99 / -std=c++0x -pedantic
@ 2012-01-07 23:26 Jani Nikula
  2012-01-07 23:26 ` [RFC PATCH 1/9] build: use -std=c99 -pedantic for C source Jani Nikula
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Jani Nikula @ 2012-01-07 23:26 UTC (permalink / raw)
  To: notmuch

Hi all, this series was borne of curiousity about compiling the notmuch codebase
using -std=c99 / -std=c++0x -pedantic options. The C part is split into separate
patches to make it easier to see each warning and fix; with C++ I didn't bother
so much.

Turns out there are a few specific issues, but overall it's not too bad. However
my gut feeling is that some of the fixes to get standards compliance are uglier
than just using the GCC extensions. The question is, do we care about anything
other than GCC?

Comments and discussion welcome; that was the whole point here rather than any
serious effort for merging these. (But that can follow if people think this is
worth it.)

BR,
Jani.



Jani Nikula (9):
  build: use -std=c99 -pedantic for C source
  xutil: #define _POSIX_C_SOURCE to get strdup()
  lib: fix messages.c build warn
  lib: HACK: avoid warnings from talloc_steal()
  cli: fix warning about variadic macros
  cli: fix another warning about variadic macros
  util: fix warning about variadic macros
  lib: use -std=c++0x -pedantic
  test: smtp-dummy: fixes for -std=c99 -pedantic

 configure             |    4 ++--
 lib/database.cc       |    3 +--
 lib/message.cc        |    2 +-
 lib/messages.c        |    6 ++++--
 lib/notmuch-private.h |    8 +++++---
 lib/tags.c            |    5 ++++-
 lib/thread.cc         |    2 +-
 notmuch-client.h      |    9 ++++++---
 notmuch-setup.c       |    7 +++++--
 test/smtp-dummy.c     |    4 +++-
 util/error_util.h     |    8 +++++---
 util/xutil.c          |    2 ++
 12 files changed, 39 insertions(+), 21 deletions(-)

-- 
1.7.5.4

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-01-10 10:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-07 23:26 [RFC PATCH 0/9] -std=c99 / -std=c++0x -pedantic Jani Nikula
2012-01-07 23:26 ` [RFC PATCH 1/9] build: use -std=c99 -pedantic for C source Jani Nikula
2012-01-07 23:26 ` [RFC PATCH 2/9] xutil: #define _POSIX_C_SOURCE to get strdup() Jani Nikula
2012-01-07 23:26 ` [RFC PATCH 3/9] lib: fix messages.c build warn Jani Nikula
2012-01-08  0:26   ` Austin Clements
2012-01-10 10:38   ` David Bremner
2012-01-07 23:26 ` [RFC PATCH 4/9] lib: HACK: avoid warnings from talloc_steal() Jani Nikula
2012-01-07 23:26 ` [RFC PATCH 5/9] cli: fix warning about variadic macros Jani Nikula
2012-01-07 23:26 ` [RFC PATCH 6/9] cli: fix another " Jani Nikula
2012-01-07 23:26 ` [RFC PATCH 7/9] util: fix " Jani Nikula
2012-01-07 23:26 ` [RFC PATCH 8/9] lib: use -std=c++0x -pedantic Jani Nikula
2012-01-07 23:26 ` [RFC PATCH 9/9] test: smtp-dummy: fixes for -std=c99 -pedantic Jani Nikula

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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).