Skip to content

Instantly share code, notes, and snippets.

@keithah
Created September 15, 2015 18:16
Show Gist options
  • Save keithah/fd765f12d60b843a875a to your computer and use it in GitHub Desktop.
Save keithah/fd765f12d60b843a875a to your computer and use it in GitHub Desktop.
keith@sea:~/tmp/Comskip$ make
cc -c -g -pipe -Wall -W -Wno-unused-parameter -Wno-unused-label -O2 -DDONATOR -DPROCESS_CC -I. -o comskip.o comskip.c
comskip.c:675:24: error: expected declaration specifiers or ‘...’ before numeric constant
static DECLARE_ALIGNED(32, long, histogram[256]);
^
comskip.c:675:34: error: unknown type name ‘histogram’
static DECLARE_ALIGNED(32, long, histogram[256]);
^
comskip.c:676:24: error: expected declaration specifiers or ‘...’ before numeric constant
static DECLARE_ALIGNED(32, long, lastHistogram[256]);
^
comskip.c:676:34: error: unknown type name ‘lastHistogram’
static DECLARE_ALIGNED(32, long, lastHistogram[256]);
^
comskip.c:9447:24: error: expected declaration specifiers or ‘...’ before numeric constant
static DECLARE_ALIGNED(32, int, own_histogram[4][256]);
^
^
comskip.c: In function ‘OutputCleanMpg’:
comskip.c:7582:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
libv8.so.3.14.5 -> libv8.so.3.14.5
liblog4cxx.so.10 -> liblog4cxx.so.10.0.0
libtidy-0.99.so.0 -> libtidy.so
^
^
^
comskip.c: In function ‘OutputCleanMpg’:
comskip.c:7582:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_res ^
comskip.c:7583:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
_write(outf, MPEG2SysHdr, sizeof(MPEG2SysHdr));
^
In file included from comskip.c:15:0:
comskip.c: In function ‘LoadFile’:
platform.h:118:29: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
#define _getcwd(x, y) getcwd(x, y)
^
comskip.c:8124:5: note: in expansion of macro ‘_getcwd’
_getcwd(cwd, 256);
^
comskip.c: In function ‘LoadCutScene’:
comskip.c:9397:14: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&csbrightness[i], sizeof(int), 1, cutscene_file);
^
comskip.c: In function ‘InputReffer’:
comskip.c:12721:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), raw); // Read first line
^
comskip.c:12740:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), raw); // Skip second line
^
comskip.c: In function ‘ProcessCSV’:
comskip.c:13342:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), in_file); // Skip first line
^
comskip.c:13344:14: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), in_file); // Skip second line
^
make: *** [comskip.o] Error 1
@erikkaashoek
Copy link

Check the definition of compiler specific DECLARE_ALIGNED
if absent

define DECLARE_ALIGNED(X,Y, Z) Y Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment