gecko-dev/layout/build
Chris Peterson 73675ec9f2 Bug 1443402 - Fix some -Wmissing-prototypes warnings in layout. r=dholbert
-Wmissing-prototypes is a new optional warning available in clang ToT. It warns about global functions that have no previous function declaration (e.g. from an #included header file). These functions can probably be made static (allowing the compiler to better optimize them) or they may be unused.

Confusingly, clang's -Wmissing-prototypes is equivalent to gcc's -Wmissing-declarations, not gcc's -Wmissing-prototypes. A function prototype is a function declaration that specifies the function's argument types. C++ requires that all function declarations specify their argument types, but C does not. As such, gcc's -Wmissing-prototypes is a C-only warning about C functions that have no previous function *prototypes* (with argument types), even if a previous function *declaration* (without argument types) was seen.

MozReview-Commit-ID: FGKVLzeQ2oK

--HG--
extra : rebase_source : 81e62163bf41a5d5dd87abf5397e6e8c62ed4096
extra : source : 653a9fc279e2f6a6d066474a94a70d65ac703d6b
2018-02-22 21:03:45 -08:00
..
moz.build Bug 1353329 - Remove remains of SecureElement API. r=bz 2018-01-31 22:07:30 +01:00
nsContentDLF.cpp Bug 1443402 - Fix some -Wmissing-prototypes warnings in layout. r=dholbert 2018-02-22 21:03:45 -08:00
nsContentDLF.h Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame 2017-10-27 10:33:53 -07:00
nsLayoutCID.h Backed out 11 changesets (bug 1252998) for faling browser-chrome on browser/base/content/test/sanitize/browser_sanitize-offlineData.js 2018-01-08 11:00:39 +02:00
nsLayoutModule.cpp Bug 1443402 - Fix some -Wmissing-prototypes warnings in layout. r=dholbert 2018-02-22 21:03:45 -08:00
nsLayoutStatics.cpp Bug 1443236 - remove static init and shutdown nsRegion routines; r=kats 2018-03-05 14:06:50 -05:00
nsLayoutStatics.h Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame 2017-10-27 10:33:53 -07:00