Skip to content
Commits on Source (2)
  • Andrew Price's avatar
    Fix mozjs build on Fedora 24 · b90c91d7
    Andrew Price authored
    b90c91d7
  • Andrew Price's avatar
    Fix client build on Fedora 24 · ec8ad16a
    Andrew Price authored
    js.c:17:32: error: option ‘-Winvalid-offsetof’ is valid for C++/ObjC++ but not for C [-Werror=pragmas]
     #pragma GCC diagnostic ignored "-Winvalid-offsetof"
                                    ^~~~~~~~~~~~~~~~~~~~
    js.c:21:32: error: option ‘-Winvalid-offsetof’ is valid for C++/ObjC++ but not for C [-Werror=pragmas]
     #pragma GCC diagnostic warning "-Winvalid-offsetof"
                                    ^~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    ../../Makefile.common:104: recipe for target 'js.o' failed
    ec8ad16a
......@@ -55,7 +55,7 @@ $MILESTONE_FILE = "$TOPSRCDIR/config/milestone.txt";
#
my $milestone = Moz::Milestone::getOfficialMilestone($MILESTONE_FILE);
if (defined(@TEMPLATE_FILE)) {
if (@TEMPLATE_FILE) {
my $TFILE;
foreach $TFILE (@TEMPLATE_FILE) {
......
......@@ -14,11 +14,9 @@
/* Ugly but necessary (this is how gjs shuts up the warnings,
only gcc 4.6 has a nicer (push/pop) way to do it */
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
#pragma GCC diagnostic ignored "-Wbad-function-cast"
#include <jsdbgapi.h>
#pragma GCC diagnostic warning "-Wbad-function-cast"
#pragma GCC diagnostic warning "-Winvalid-offsetof"
#pragma GCC diagnostic warning "-Wstrict-prototypes"
#include <sqlite.h>
......