Bug 142278 - Silence GCC's -Wstrict-prototypes
Summary: Silence GCC's -Wstrict-prototypes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-04 08:14 PST by Debarshi Ray
Modified: 2015-03-04 17:52 PST (History)
1 user (show)

See Also:


Attachments
Patch (1.19 KB, patch)
2015-03-04 11:06 PST, Debarshi Ray
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Debarshi Ray 2015-03-04 08:14:27 PST
In ANSI C, one must specify the argument types (even if it is void) in a function prototype. Otherwise GCC complains. I have gcc-4.9.2 here.

In file included from /usr/include/webkitgtk-4.0/JavaScriptCore/JavaScript.h:31:0,
                 from goawebview.c:27:
/usr/include/webkitgtk-4.0/JavaScriptCore/JSContextRef.h:51:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 JS_EXPORT JSContextGroupRef JSContextGroupCreate() CF_AVAILABLE(10_6, 7_0);
 ^
Comment 1 Debarshi Ray 2015-03-04 11:06:51 PST
Created attachment 247871 [details]
Patch
Comment 2 WebKit Commit Bot 2015-03-04 17:52:21 PST
Comment on attachment 247871 [details]
Patch

Clearing flags on attachment: 247871

Committed r181059: <http://trac.webkit.org/changeset/181059>
Comment 3 WebKit Commit Bot 2015-03-04 17:52:23 PST
All reviewed patches have been landed.  Closing bug.