Project

General

Profile

Actions

Task #3293

closed

Turn on -Wextra

Added by Davide Pesavento about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Low
Category:
Build
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

I propose to add -Wextra to the default compiler flags for ndn-cxx, nfd, and ndn-tools.

The only problem is that it enables the completely useless warning about unused parameters, so we need to disable that at the same time.

Moreover, with gcc-4.x we also have to pass -Wno-missing-field-initializers to suppress a bogus warning that was finally fixed in gcc-5. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55805

Actions

Also available in: Atom PDF