hello.c:
#include <stdio.h>
static int t = 1;
int main()
{
if (t)
printf("on this line\n");
hello.c:
#include <stdio.h>
static int t = 1;
int main()
{
if (t)
printf("on this line\n");
Steps to repro: | |
--------------- | |
1. buildbot create-master temp-master | |
2. mv temp-master/temp-master.cfg.sample temp-master/master.cfg | |
3. Change so it looks like this (MailNotifier added) | |
--------------- | |
# -*- python -*- | |
# ex: set syntax=python: |
/Users/danielcollin/code/prodbg/src/external/imgui/imgui.cpp:6527:1: error: function 'GetDefaultFontData' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn] | |
{ | |
^ | |
/Users/danielcollin/code/prodbg/src/external/imgui/imgui.cpp:6678:20: error: implicit conversion loses integer precision: 'int' to 'stbrp_coord' (aka 'unsigned short') [-Werror,-Wconversion] | |
extra_rect.w = (int)TEX_ATLAS_SIZE.x; | |
~ ^~~~~~~~~~~~~~~~~~~~~ | |
/Users/danielcollin/code/prodbg/src/external/imgui/imgui.cpp:6679:20: error: implicit conversion loses integer precision: 'int' to 'stbrp_coord' (aka 'unsigned short') [-Werror,-Wconversion] | |
extra_rect.h = (int)TEX_ATLAS_SIZE.y; | |
~ ^~~~~~~~~~~~~~~~~~~~~ | |
/Users/danielcollin/code/prodbg/src/external/imgui/imgui.cpp:8748:23: error: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Werror,-Wshorten-64-to-32] |
// files = list of files that has changed | |
// fileCount = number of files | |
// The code is not allowed to save any of the filenames directly but must take a copy if that is needed (so the calling code can free the memory) | |
typedef void (*NotificationCallback)(void* userData, const char** files, int fileCount); | |
typedef void* DWHandle; | |
// path = path to watch | |
// fileFilters = in style with "*.txt;*.dll;*.so" |
http://events.ccc.de/congress/2014/Fahrplan/events/6103.html - AMD x86 SMU firmware analysis
http://events.ccc.de/congress/2014/Fahrplan/events/6308.html - Beyond PNR: Exploring airline systems
http://events.ccc.de/congress/2014/Fahrplan/events/6344.html - Security Analysis of Estonia's Internet Voting System
http://events.ccc.de/congress/2014/Fahrplan/events/6236.html - Iridium Pager Hacking
prodbg/src/prodbg/ui/imgui/imgui.cpp:443:31: error: variable 'd' may be uninitialized when used here [-Werror,-Wconditional-uninitialized] | |
return (count == 0) ? 0 : d; | |
^ | |
prodbg/src/prodbg/ui/imgui/imgui.cpp:441:10: note: initialize the variable 'd' to silence this warning | |
int d; | |
^ | |
= 0 | |
prodbg/src/prodbg/ui/imgui/imgui.cpp:4131:9: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion] | |
if (new_text_len + text_len + 1 >= obj->BufSize) | |
^~~~~~~~~~~~ ~ |
Clang version: | |
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) | |
Target: x86_64-apple-darwin14.0.0 | |
Compile line: | |
clang -Weverything -c stb.c -o temp.o 2> warnings.txt | |
----------------------------------------------------------------- |
stb\stb.h(744): error C2220: warning treated as error - no 'object' file generated | |
stb\stb.h(744): warning C4244: 'function' : conversion from '__int64' to 'int', possible loss of data | |
stb\stb.h(755): warning C4244: 'function' : conversion from '__int64' to 'int', possible loss of data | |
stb\stb.h(767): warning C4244: 'function' : conversion from 'int' to 'unsigned short', possible loss of data | |
stb\stb.h(786): warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data | |
stb\stb.h(790): warning C4244: 'function' : conversion from '__int64' to 'int', possible loss of data | |
stb\stb.h(800): warning C4244: 'function' : conversion from '__int64' to 'int', possible loss of data | |
stb\stb.h(888): warning C4244: '=' : conversion from 'stb_uint32' to 'stb__wchar', possible loss of data | |
stb\stb.h(896): warning C4244: '=' : conversion from 'stb_uint32' to 'stb__wchar', possible loss of data | |
stb\stb.h(933): warning C4244: '=' : conversion from 'int' to 'char', possible loss of data |
../../imgui.cpp:5539:33: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion] | |
if (i+4 > n) return NULL; | |
~~~~~~ ^~~~ |
./../imgui.cpp:5410:22: warning: comparison of constant 194 with expression of type 'const char' is always true | |
[-Wtautological-constant-out-of-range-compare] | |
if (*str < 0xc2) return -1; | |
~~~~ ^ ~~~~ | |
../../imgui.cpp:5420:22: warning: comparison of constant 224 with expression of type 'const char' is always false | |
[-Wtautological-constant-out-of-range-compare] | |
if (*str == 0xe0 && (str[1] < 0xa0 || str[1] > 0xbf)) return -1; | |
~~~~ ^ ~~~~ | |
../../imgui.cpp:5420:41: warning: comparison of constant 160 with expression of type 'const char' is always true | |
[-Wtautological-constant-out-of-range-compare] |